I would like to downgrade dart version from 2.13.4 to 2.13.0 or lower. How to make it from terminal I tried some solution but it doesn't work in my case.
dart pub install 2.13.0
then dart --version and still I have 2.13.4
CodePudding user response:
Try this tutorial https://dart.dev/tools/pub/cmd/pub-downgrade Or just uninstall the dart then install again.
CodePudding user response:
This Solution works only if you use Windows and Android Studio.
Step 1
For download an older flutter Sdk go to this link: https://docs.flutter.dev/development/tools/sdk/releases and download an older flutter Sdk.
Step 2
After you done that search in the bottom left Search Bar from Windows (edit system environment variables) and open the first option
then click on the bottom right Button: (Environment variables...)
then select the (path) in you (user variables for flutter) and edit the old Path to the new Path from the older flutter Sdk
Step 3
Go in you Android Studio and go to (File > Settings... > Languages & Frameworks > Flutter) and change the Path of your current flutter Sdk to the new flutter sdk Path that has an older version of Flutter in.
The (Dart SDK path) will change automatically if you click Apply
After you done that close and open Android Studio again. Now you have an older dart Sdk version.
Hope it helps!
CodePudding user response:
In terminal:
flutter downgrade