FlutterAssetsGenerator
FlutterAssetsGenerator copied to clipboard
当assets多于一个时,生成的资源文件出错
我的pubspec.yaml文件中assets配置如下:
结果生成的.dart如下:
正常来说
static const String ic_album_art = 'assets-b/logo/ic_album_art.png';
static const String ic_background = 'assets-b/background/ic_background.png';
应该是
static const String ic_album_art = 'assets-a/logo/ic_album_art.png';
static const String ic_background = 'assets-a/background/ic_background.png';
请帮忙改正.
另外,我的assets-b文件夹下面的有background和logo目录,我不知是不是这样导致生成.dart文件出错. 目录结构如下: assert : |- _ |- background |- logo assert-a : |- background |- logo assert-b : |- background |- button-item |- logo