xvrh / lottie-flutter

Render After Effects animations natively on Flutter. This package is a pure Dart implementation of a Lottie player.
https://pub.dev/packages/lottie
MIT License
1.15k stars 197 forks source link

Referencing svgs from lottie animation #68

Open appycamper opened 4 years ago

appycamper commented 4 years ago

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?

xvrh commented 4 years ago

It's not supported right now. But it's a good feature request.

There is several possibilities:

appycamper commented 4 years ago

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.