Flutter SDK 多版本管理工具
- 首先,添加homebrew的tap源:
brew tap dashixiong91/fvm
- 添加完tap之后,你可以安装
fvm
brew install fvm
- 拷贝以下内容到你的
.bashrc|.zshrc ...
文件中
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export FVM_DIR="$HOME/.fvm"
source "/usr/local/opt/fvm/init.sh"
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