Visual Studio Code Flutter Cannot Update Dart SDK


Because depends on cupertino_icons >=1.0.1 which requires SDK version >=2.12.0-0 <3.0.0, version solving failed.

whenever I tried to flutter run, flutter pub get, flutter pub upgrade, I got this return in console.. I also have tried flutter update-packages it returns

Flutter is already up to date on channel stable Flutter 1.22.5 •
channel stable • Framework •
revision 7891006299 (3 weeks ago) • 2020-12-10 11:54:40 -0800 Engine
• revision ae90085a84 Tools • Dart 2.10.4

How can I update Dart SDK?


you should use 1.0.0 version of cupertino in your pubspec.yaml. I think there is a problem with new version of cupertino

 cupertino_icons: ^1.0.0

Answered By – Timur Turbil

Answer Checked By – Cary Denson (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *