Skip to content

Include package in AssetGenImage path property #248

Closed
@kolotum

Description

Similiar to AssetImage's keyName property it would be helpful to change AssetGenImage's path property to include package so we can hide the package name inside of AssetGenImage:

-  String get path => _assetName;
+  String get path =>
+      _package == null ? _assetName : 'packages/$_package/$_assetName';

_package could be generated, e.g.
final String? _package = 'example_resources';

without package_parameter_enabled: true:
final String? _package;

SvgGenImage could be changed accordingly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions