Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to downgrade your flutter SDK version?

Tags:

flutter

My current Dart SDK Version is 2.1.2-dev.0.0.flutter-0a7dcf17eb. However i need to use a flutter text recognition Dependency that requires SDK version >=1.23.0 <2.0.0

How can I downgrade my version?

like image 372
Denise Avatar asked Jun 18 '19 09:06

Denise


People also ask

How do I change my version of Flutter SDK?

It can be done by changing the git branch of the Flutter SDK repository, changing the channel, or downloading a specific version from their website. To upgrade to the latest version, you can use the flutter upgrade command.

How do I download older versions of flutter?

If you need a rollback of Flutter, check out the app's version history on Uptodown. It includes all the file versions available to download off Uptodown for that app. Download rollbacks of Flutter for Windows. Any version of Flutter distributed on Uptodown is completely virus-free and free to download at no cost.


2 Answers

In the Flutter install directory execute

git checkout v1.2.2

Now run

flutter doctor
like image 157
Swamim Saikia Avatar answered Nov 12 '22 16:11

Swamim Saikia


You can just go from a version to another using the new commands

  • flutter downgrade -> go to the previous
  • flutter upgrade -> update to the new one
like image 45
FedeH Avatar answered Nov 12 '22 17:11

FedeH