Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
bramp opened this issue Sep 7, 2023 · 1 comment
Open
2 tasks done

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

bramp opened this issue Sep 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@bramp
Copy link
Contributor

bramp commented Sep 7, 2023

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
@bramp bramp added the enhancement New feature or request label Sep 7, 2023
@xcc3641
Copy link

xcc3641 commented Jan 30, 2024

any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants