Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify Flutter version during upgrade [duplicate]

Tags:

flutter

I work on a Flutter application on two different PC's and would like the Flutter version to be the same for both. I am on the dev channel and when I do a flutter upgrade it ugrades to the latest version in that channel.

Two days ago I did a flutter upgrade on one PC and it went to version 1.2.2. Today on my other PC I did a flutter upgrade 1.2.2 but it went to version 1.3.2 instead.

Is there a way for me to specify the flutter version when upgrading?

like image 886
Graham Avatar asked Mar 01 '19 15:03

Graham


People also ask

How do I update my Flutter version to a specific version?

Upgrading the Flutter SDK This command gets the most recent version of the Flutter SDK that's available on your current Flutter channel. If you want an even more recent version of the Flutter SDK, switch to a less stable Flutter channel and then run flutter upgrade .

How do I downgrade to a specific version of a Flutter?

To Downgrade Flutter SDK First of all Open your Terminal. Then type flutter version It will return all flutter version list. Choose the version that you want to downgrade. Just run the flutter version Suppose I want to use flutter version v1.


1 Answers

This is not yet supported.
There is an open issue for that https://github.com/flutter/flutter/issues/14230

Currently you can use Git commands to get a specific version

$ cd flutter
$ # git checkout [branch, tag or commit hash]
$ git checkout v1.2.2

Update

flutter downgrade <version> is now supported.

The available versions can be be found in https://github.com/flutter/flutter/tags

like image 189
Günter Zöchbauer Avatar answered Oct 14 '22 01:10

Günter Zöchbauer