From 2b5a699029efdcd663b3fa92306915241b77e693 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Tue, 17 Aug 2021 16:43:45 +0800 Subject: [PATCH] update reademe --- README.md | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index be4b70f..817c16d 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,33 @@ A new Flutter application. -## Getting Started -### 使用grind命令构建页面(使用以下代码全局启用构建器) -```flutter pub global activate grinder``` -或使用 -```flutter pub run grinder``` +## 使用以下命令生成运行所必需文件 -### 使用`fgen`生成图片路径 +###生成图片路径(fgen) 使用以下代码全局启用构建器 - -```flutter pub global activate global activate flutter_asset_generator``` - +```shell + flutter pub global activate global activate flutter_asset_generator +``` 或使用 -```flutter pub run flutter_asset_generator:resource_generator``` - +```shell +flutter pub run flutter_asset_generator:resource_generator + +``` +###生成model.g.dart +```shell +flutter pub run build_runner build +``` +## 启用脚本命令(grind) +使用以下代码全局启用构建器 +```shell +flutter pub global activate grinder +``` +或使用 +```shell +flutter pub run grinder +``` +命令列表见```/tool/grind.dart``` ### password password `1Xpn6hhbxztA6PC0oFiZ` -### 需要重构应用页面