Flutter 常用命令

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
点赞