Skip to content

[FR]: Support provider(..) for SVG images #418

Open
@bramp

Description

@bramp

Is there an existing issue for this?

  • I have searched the existing issues

Describe the problem

AssetGenImage supports both image(..) and provider(..) the former returns a Widget and later a ImageProvider. SvgGenImage supports only svg(..) which returns a widget.

Describe the solution

It would be useful if SvgGenImage also supported a loader(..) method that returns a SvgLoader (which is the equivalent to a ImageProvider but for SVGs).

Additional context

The alternative at the moment is to write out, SvgAssetLoader(Assets.name.keyName)) instead of Assets.name.loader()

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions