Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当assets多于一个时,生成的资源文件出错 #14

Open
footooman opened this issue Oct 21, 2023 · 1 comment
Open

当assets多于一个时,生成的资源文件出错 #14

footooman opened this issue Oct 21, 2023 · 1 comment

Comments

@footooman
Copy link

我的pubspec.yaml文件中assets配置如下:
image
结果生成的.dart如下:
image
正常来说
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';
请帮忙改正.

@footooman
Copy link
Author

另外,我的assets-b文件夹下面的有background和logo目录,我不知是不是这样导致生成.dart文件出错.
目录结构如下:
assert :
|- _
|- background
|- logo
assert-a :
|- background
|- logo
assert-b :
|- background
|- button-item
|- logo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant