Skip to content

Include package in AssetGenImage path property #248

Closed
@kolotum

Description

@kolotum

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.

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