Flutter SDK versions Manager
- First, add homebrew's tap:
brew tap dashixiong91/fvm
- Once the tap has added, you can install
fvm
brew install fvm
- Copy the following content in to your
.bashrc|.zshrc ...
file
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export FVM_DIR="$HOME/.fvm"
source "/usr/local/opt/fvm/init.sh"
export PATH="$PATH:$FVM_DIR/current/bin/"
export PATH="$PATH:$FVM_DIR/current/bin/cache/dart-sdk/bin"
fvm
# or `fvm --help`
fvm install 1.9.1
fvm use 1.9.1
fvm alias latest 1.9.1
fvm list
fvm list-remote all