The lower bound of “sdk: ‘<2.0.0 or >=2.0.0-dev.28.0 <3.0.0′” must be 2.12.0 or higher to enable null safety.

Posted by

Error:

The current Dart SDK version is 3.2.6.

Because webviewmyhospitalnow depends on path_provider >=0.1.1 <2.0.0-nullsafety which doesn't support null safety, version solving failed.

The lower bound of "sdk: '<2.0.0 or >=2.0.0-dev.28.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

Sulotion:

Your Dart SDK version is 3.2.6, which requires null safety, and the path_provider package version you’re using doesn’t support it, which is why you’re seeing this error message.

You must update the path_provider package to a version that supports null safety in order to fix this problem. Version 2.0.8 of the path_provider package is said to support null safety on the pub.dev website.

You can edit your pubspec.yaml file as follows:

Run flutter pub get in your terminal to fetch the updated package after making changes to your pubspec.yaml file.

To enable null safety, confirm that the version of the Dart SDK you are using is 2.12.0 or higher. If not, you may require a Dart SDK upgrade.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x