一、下载sdk https://flutter.io/setup-macos/
二、配置环境变量
1、vim ~/.bash_profile
2、export PATH=/Users/aishengwanwu/flutter_mac/flutter/bin:$PATH
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
3、source ~/.bash_profile
三、验证SDK安装
1、flutter -h
2、flutter doctor
网友评论