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
[X] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
Describe the problem
AssetGenImage
supports bothimage(..)
andprovider(..)
the former returns aWidget
and later aImageProvider
.SvgGenImage
supports onlysvg(..)
which returns a widget.Describe the solution
It would be useful if
SvgGenImage
also supported aloader(..)
method that returns aSvgLoader
(which is the equivalent to aImageProvider
but for SVGs).Additional context
The alternative at the moment is to write out,
SvgAssetLoader(Assets.name.keyName))
instead ofAssets.name.loader()
Code of Conduct