Skip to content

Flutter 使用

Updated: at 05:27 PMSuggest Changes

常用命令

flutter doctor --android-licenses    avd 虚拟机的协议认证
flutter doctor                       检查 flutter 开发环境
flutter upgrade                      更新 flutter 版本
flutter pub get                      安装项目的依赖包
flutter pub upgrade                  升级项目依赖包
flutter packages get                 同上

国内镜像

# Mac or Linux
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

# Windows
set PUB_HOSTED_URL=https://pub.flutter-io.cn
set FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

Previous Post
Jetbrain IDEA 重置试用
Next Post
Flutter 遇到的问题