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
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
–
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.
Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow
Experienced software developer proficient in HTML, CSS, and Bootstrap for crafting elegant and responsive user interfaces.
Skilled in Laravel and PHP, with a focus on building robust and scalable web applications.
Proficient in JavaScript for both frontend and backend development, leveraging frameworks like React and Vue.js.
Experienced in designing and consuming RESTful APIs to enable seamless communication between client and server.
Expertise in integrating payment gateways such as PayPal, Stripe, and Paytm for secure online transactions.
Familiar with Flutter, enabling the creation of natively compiled applications for mobile, web, and desktop.
Proficient in Android Studio, the primary IDE for developing Android applications.
Knowledgeable in Linux and Docker for efficient server management and application deployment.
Experienced in using Redis as an in-memory data structure store, enhancing application performance.
Passionate about staying updated with the latest technologies and continuously learning to deliver high-quality solutions.