下载SDK
1、通过下载安装包方式通过下载安装包的方式安装
Flutter SDK 版本列表
cd ~/development
unzip ~/Downloads/flutter_macos_2.8.1-stable.zip
2、直接从 Github 上下载
git clone https://github.com/flutter/flutter.git -b stable
添加Flutter环境变量
export PATH=${PATH}:/Users/qiao/flutter/bin
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
配置完成,使用soucre重新加载
source ~/.bash_profile
现在你可以愉快地运行 Flutter 的命令行啦!