官網:https://flutter.dev/docs/get-started/install/macos
image.pngimage.png
image.png
把以下複製進去,記得修改你真實的flutter,命令行重啟
接着保存退出后,在终端输入 source ~/.bash_profile 即可使用flutter
export PATH=/Users/aneng/flutter/bin:$PATH
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PUB_HOSTED_URL=https://pub.flutter-io.cn
网友评论