AndrewShen812 / AssetsRefGenerator

MIT License
46 stars 9 forks source link

文件被遗漏了。 #2

Open DamonChen117 opened 4 years ago

DamonChen117 commented 4 years ago

文件结构如下: ./.DS_Store ./images/record.png ./images/.DS_Store ./images/play_grey.png ./images/audio_pause.png ./images/record_grey.png ./images/play.png ./images/back.png ./images/audio_play.png ./base/Color Zoo/dubbing.txt ./base/.DS_Store ./base/raza_Fruit Colors/content.txt ./base/raza_Fruit Colors/.DS_Store ./base/raza_Fruit Colors/translation.txt ./base/struct.txt ./base/videoStory/content.txt ./base/videoStory/.DS_Store ./base/Make a Snowman/content.txt ./base/Make a Snowman/.DS_Store ./base/Make a Snowman/cover.png ./base/imageStory/content.txt ./base/imageStory/.DS_Store ./base/imageStory/translation.txt

生成的yaml: assets:

缺少: ./base/Make a Snowman/content.txt

AndrewShen812 commented 4 years ago

感谢反馈。你的文件命名和结构实际上是应用了 Flutter 的资源变体概念(你在不同子目录中放了同名的 content.txt),按照 Flutter的理念,变体可以存在多个,但声明中仅有一行,参考:Flutter Asset 变体(variant)。建议你重命名 content.txt 试一下呢。 另外,通过你的反馈,我注意到插件扫描添加了 Mac OS 系统中 .DS_Store 文件的问题,下次更新将会修复,感谢你的反馈,有疑问欢迎继续交流~