美文网首页
flutter标准流命令

flutter标准流命令

作者: 大宝来巡山 | 来源:发表于2023-11-08 11:58 被阅读0次
image.png

工程初始化

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

相关文章

网友评论

      本文标题:flutter标准流命令

      本文链接:https://www.haomeiwen.com/subject/dgdqwdtx.html