[BUG]: package_parameter_enabled
is ignored for AssetGenImage
"provider
" method
#360
Closed
2 tasks done
Is there an existing issue for this?
Version
5.2.0
Command type
build_runner (Default)
What happened?
When generating image assets this package generates an
AssetGenImage
class that is the base class for all images and that provides two methods:image
, that provides a FlutterImage.asset
provider
, that provides anImageProvider
Also the package accepts an additional output parameter named
package_parameter_enabled
that allow us to take profit for a packaged architecture assets generation as explained in Flutter official assets doc.This works great for
image
method because its implementation usekeyName
getter as the asset name, which contains the full package path.However for some reason
provider
uses_assetName
as its asset name, which does not contain the asset full path with the package.Also the
provider
implementation should probably propose a complete method with all the parameters from Flutter originalAssetImage
constructor.The solution is really easy, I could propose a PR for it.
Relevant a pubspec.yaml.
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: