1、下载flutter
https://flutter.dev/docs/get-started/install/macos
2、下载解压后flutter放在路径:
3、更新 .bash_profile
配置
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH=/Users/hn/flutter/bin:$PATH
注意:hn
为用户自己的用户名