Flutter 常用命令:
Flutter 常用命令 | 说明 |
---|---|
flutter | 列出所有的命令 |
flutter help |
查看具体命令的帮助信息 |
flutter doctor | 查看是否还需要安装其它依赖 |
flutter doctor -v | 查看详细信息 |
flutter channel | 查看 Flutter SDK 所有分支 |
flutter channel stable | 切换分支 |
flutter upgrade | 升级 Flutter SDK(此命令会同时更新 Flutter SDK 和你的 Flutter 项目依赖包) |
flutter packages get | 获取项目所有的依赖包(只更新项目依赖包,不包括 Flutter SDK) |
flutter packages upgrade | 获取项目所有依赖包的最新版本(只更新项目依赖包,不包括 Flutter SDK) |
flutter analyze | 分析项目代码 |
flutter build apk | |
flutter build ios |