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的版本信息.