# Flutter

参考资料:

基础资源:

快速打开iOS模拟器

  • Alfred 搜索 simulator
  • 命令方式 open -a Simulator

常见命令

export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
flutter pub get  // 获取依赖包
flutter run    // 开发
flutter emulator             //查看本地模拟器
flutter emulators --create --name xyz        //创建一个模拟器
flutter emulators --launch <emulator id>       //启动模拟器
flutter build apk           //打包Android应用
flutter build apk –release
flutter install             //安装应用
flutter build ios            //打包IOS应用
flutter build ios –release
flutter clean               //清理重新编译项目
flutter upgrade            //升级Flutter SDK和依赖包
flutter channel            //查看Flutter官方分支列表和当前项目使用的Flutter分支
flutter channel <分支名>   //切换分支
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
上次更新: 2021-05-06