Skip to content

Commit eabb590

Browse files
update
1 parent 34686f7 commit eabb590

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readme/Flutter的需要与原生交互的一些常用库.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
2323
## 根据pubspec.yaml中设置的目录模板自动向其中添加文件记录的脚本 `asset_generator`
2424

25-
好多人都说
25+
好多人都说Flutter中的资源引用很头疼,手写很麻烦,最近找到了一个脚本刚好卡呀解决这个问题。
2626

2727
**这个脚本的作用:利用`asset_generator`脚本生成r.dart 资源文件,方便在代码中引用资源。**
2828

@@ -35,6 +35,8 @@ github地址: https://github.com/flutter-dev/asset_generator
3535
2.找到自己Flutter的安装目录,将脚本放在Flutter的根目录下。
3636
```
3737
38+
#### 另外关于pubspec.yaml文件,它很严格,很多人会写错,多一个或者少一个空格都会报错。刚好我找到了一个在线监测工具https://www.bejson.com/validators/yaml/ 把你的yaml文件复制进去 就可以自动帮你找出错误了。
39+
3840
----
3941
4042
## 常用开源包:

0 commit comments

Comments
 (0)