flutter常用命令

flutter常用命令

  • 设备列表: flutter emulators
  • 创建应用:flutter create my_app
  • 运行应用: flutter run
  • 环境检查: flutter doctor
  • 开启一个模拟器: open -a Simulator
  • 依赖: flutter packages get pub get packages

    镜像

    export PUB_HOSTED_URL=https://pub.flutter-io.cn
    export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn