Open appycamper opened 4 years ago
It's not supported right now. But it's a good feature request.
There is several possibilities:
ui.Image
at load time and reference the ui.Image
from the composition. This probably could be done right now with the imageProviderFactory
that returns a MemoryImage
.
The disadvantage of this technique is that you have to rasterize the image at a specific size ahead of time and you won't have the perfect pixel density.flutter_svg
directly in this library. We will have a new dependency and every one will pay the cost in term of code size.Thanks, I'll try out your first suggestion. It'd be great if the library supported svg out of the box but I'm not sure how niche this use case is. In case it isn't a popular use case I'd suggest adding a customisable callback so I can use a third party library like flutter_svg.
example.zip Hi,
I've attached an example of an animation that references an svg but unfortunately the svg image does not show up.
I've tried using something like flutter_svg but this doesn't have an imageprovider that is compatible with lottie.
are svgs currently supported?