diff --git a/README.md b/README.md index efb86747..a9dbae25 100644 --- a/README.md +++ b/README.md @@ -6,24 +6,32 @@ ### After pull this repo -#### 使用grind命令构建页面 +## 使用以下命令生成运行所必需文件 + +###生成图片路径(fgen) 使用以下代码全局启用构建器 ```shell -flutter pub global activate grinder + flutter pub global activate global activate flutter_asset_generator ``` 或使用 ```shell -flutter pub run grinder +flutter pub run flutter_asset_generator:resource_generator + ``` -###使用fgen生成图片路径 +###生成model.g.dart ```shell - flutter pub global activate global activate flutter_asset_generator +flutter pub run build_runner build +``` +## 启用脚本命令(grind) +使用以下代码全局启用构建器 +```shell +flutter pub global activate grinder ``` 或使用 ```shell -flutter pub run flutter_asset_generator:resource_generator - +flutter pub run grinder ``` +命令列表见```/tool/grind.dart``` ### Before git push #### import 排序