Closed rddewan closed 1 week ago
any update on this issue?
Found out that if you specify the package name while the asset comes from a package or module, the asset will be displayed. Is there a way to make this more convenient? I mean, to needlessly put the package name each time you use an asset from a package/module.
Found out that if you specify the package name while the asset comes from a package or module, the asset will be displayed. Is there a way to make this more convenient? I mean, to needlessly put the package name each time you use an asset from a package/module.
![]()
Solved it by doing the following, can finally read the assets from packages. Hope this helps
Generated output
Sample usage
@NeilPotot-Xam Looks good any doc reference on it? I cant find it
package
will be generated if you enable package_parameter_enabled
. See the updated README.
Is there an existing issue for this?
Version
^5.3.1
Command type
build_runner (Default)
What happened?
I have a modular architecture with multiple packages and in one of my packages i added a assets folder
assets/images/headphone.jpg
once the build runner is generate aassets.gen.dart
Since the file path is const
assets/images/headphone.jpeg
it can't find it the actual file path should bepackages/product/assets/images/headphone.jpeg
Relevant a pubspec.yaml.
Relevant log output
No response
Code of Conduct