一、下载慢
git clone -b stable https://github.com/flutter/flutter.git 比较缓慢解决方案如下
请配置环境变量,以Linux为例: 打开/etc/profile或~/.bashrc,添加环境变量 export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn
二、Building flutter tool...慢
flutter doctor时Building flutter tool...缓慢
添加如下环境变量 #export FLUTTER_STORAGE_BASE_URL=https://mirrors.sjtug.sjtu.edu.cn #export PUB_HOSTED_URL=https://dart-pub.mirrors.sjtug.sjtu.edu.cn export PUB_HOSTED_URL=https://pub.flutter-io.cn export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn