CodePudding user response:
Look for the sdk setting in your project's pubspec.yaml
file. This is what determines the minimum Dart SDK version for you project. Change to lower bound to 2.14.0.
environment:
sdk: ">=2.14.0 <3.0.0"
CodePudding user response:
First thing I can imagine is the following.
Check Flutter and Dart settings in Settings -> Language & Frameworks -> Flutter / Dart
Make sure you use the proper flutter version and dart sdk comes from flutter/bin/cache/dart-sdk
For example my flutter is in C:\flutter and the dart-sdk's path is C:\flutter\bin\cache\dart-sdk