flutter 配置国内镜像

最近 flutter 官方针对国内下载依赖失败的问题,放出了国内的镜像地址

Wiki地址

1
2
3
4
5
6
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
git clone -b dev https://github.com/flutter/flutter.git
export PATH="$PWD/flutter/bin:$PATH"
cd ./flutter
flutter doctor

上手试了试,速度刷刷快。