1.去github上下载flutter安装包
https://github.com/flutter/flutter/releases/tag/2.0.4
2.将安装包zip解压到你想安装Flutter SDK的路径
(如:C:\src\flutter;注意,不要将flutter安装到需要一些高权限的路径如C:\Program Files\)
3.配置系统环境变量和用户环境变量
(1)用户环境变量:
PUB_HOSTED_URL:https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL:https://storage.flutter-io.cn
(2)系统环境变量
在PATH里:添加一个你解压缩好的flutter\bin的全路径
4.在你解压缩的文件夹里用git命令行执行一条命令:
git clone -b beta https://github.com/flutter/flutter.git
如图:
这样就下载成功
5.进入用git下载命令下载的flutter文件夹,找到这个双击打开命令行,输入PowerShell,再输入flutter doctor.