The lower bound of “sdk: ‘>=2.1.0 <3.0.0′” must be 2.12.0 or higher to enable null safety

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

You must update your flutter/dart version like this (in your pubspec.yaml):

In order to enable null safety, the lower bound of the SDK version should be 2.12.0 or higher. The provided requirement, “sdk: ‘>=2.1.0 <3.0.0′”, does not meet this criteria, as the minimum required version is 2.12.0. To enable null safety, you should update the SDK version to at least 2.12.0.

environment:
  sdk: ">=2.7.0 <3.0.0"


You must update your flutter/dart version like this (in your pubspec.yaml):

environment:
  sdk: ">=2.18.0"

Be prepared to make changes on your project/code due null safety

Or seek to find a lower version of that “dropdown_formfield” that can be supported by your actual flutter/dart version.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x