This script creates/maintains a symlink to the Flutter SDK of choice. It provides a way to quickly switch Flutter SDK version globally for the whole system.
- Put
flutter_version.sh
into your home folder - Run
chmod +x flutter_version.sh
- Replace
~/Documents/SDKs
on line 16 with a path to the folder where you want to store the Flutter SDK versions - Download and put whichever versions of flutter you'd like to switch between into
<SDKs path>/flutter_versions
folder and name them conveniently. Something like1.12
and1.16_beta
will work well. - Add
<SDKs path>/flutter/bin
into PATH - Run
./flutter_version.sh list
to see the available versions - Use
./flutter_version.sh <version_name>
to switch between the Flutter SDK versions