Flutter常见命令
- flutter analyze 分析: Analyze the project’s Dart code(分析这个项目的dart代码).
- flutter attach(热加载) 依附:Attach to a running application(依附到正在运行的应用中).
- bash-completion: Output command line shell completion setup scripts.
- build(构建):Flutter build commands(构建flutter的命令).
打Android包:运行flutter build apk (flutter build 默认会包含 --release选项).
打IOS包:运行flutter build ios - channel: 展示或者切换channel.
- clean : 删除build/和 .dart_tool/ 文件,来重新更新flutter
- config : 配置flutter相关配置.
- flutter create (创建):Create a new Flutter project(创建一个新的Flutter项目).
- flutter devices(设备):List all connected devices(展示出所有连接的设备).
- doctor : 显示有关已安装flutter工具的信息,可以验证flutter环境是否可以使用
- drive : Runs Flutter Driver tests for the current project.
- emulators: List, launch and create emulators.
- format: 格式化一个或多个dart文件.
- help: Display help information for flutter.
- install : Install a Flutter app on an attached device.
- logs: Show log output for running Flutter apps.
- make-host-app-editable Moves host apps from generated directories to non-generated directories so that they can be edited by developers.
- precache: Populates the Flutter tool’s cache of binary artifacts.
- pub : Commands for managing Flutter packages.
- flutter run(运行):Run your Flutter app on an attached device(运行flutter的app到已经连接的设备上).
- screenshot : 从已连接的设备上截图.
- test : Run Flutter unit tests for the current project.
- upgrade : 升级flutter的sdk
- version: 显示flutter的版本信息.