步骤一:
官网建议在中国安装Flutter需要配置两个环境变量,
export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
但是 这貌似是Mac 和 Linux的 环境变量配置,而且只是临时的镜像。windows 所以就科学上网直了
步骤二:git clone
git clone -b dev https://github.com/flutter/flutter.git
步骤三:把flutter 的 bin 路径 添加到 path 环境变量
步骤四:打开git Bash 输入flutter doctor 安装 Dart SDK
flutter doctor
顺利安装就算是 安装成功了。。。。。。。。。。
但是,我的win7安装失败了
Downloading Dart SDK from Flutter engine ead227f118077d1f2b57842a32abaf105b573b8a…
Unknown operating system. Cannot install Dart SDK.
有win7 安装成功的不,买不起mac