工程初始化
app工程
flutter create --template=app helloApp
Dart包工程(package)
flutter create --template=package hello
Dart插件(plugin)
flutter create --template=plugin helloPlugin
工程构建
Debug
flutter build app --bebug
flutter build ios --bebug
Release
flutter build app --release
flutter build ios --release
Profile
flutter build app --profile
flutter build ios --profile
Dart测试
单元测试/UI测试
flutter test
Dart分析
flutter analyze
package发布
在发布期的package发布环节,我们可以使用flutter packages pub publish --dry-run命令对待发布的包进行发布前检查
///发布前检查
flutter packages pub publish --dry-run
flutter packages pub publish