需要安装插件 freezed
.
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
# or
fvm flutter packages pub run build_runner watch --delete-conflicting-outputs
可参考文章 https://wingpage.net/content/Flutter/Flutter%20freeze.html
大陆的简体zh_CN,港台的繁体zh_HK和zh_TW
使用方式,可直接参考 https://juejin.cn/post/6844903823119482888
fvm flutter packages pub run build_runner watch
fvm flutter packages pub run build_runner build
安装使用
dart pub global activate flutter_gen
添加依赖参考文档。
配置:
fluttergen -c pubspec.yaml
资源生成
fvm flutter packages pub run build_runner build