Home > front end >  Flutter says Dart version is 2.13.4 even though it's 2.16.0
Flutter says Dart version is 2.13.4 even though it's 2.16.0

Time:12-27

I'm trying to install this enter image description here

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

  • Related