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.16k stars 196 forks source link

[feat. request] Add VisibilityDetector to auto-pause animation #241

Open iosephmagno opened 1 year ago

iosephmagno commented 1 year ago

Dealing with many lottie files on same listView can be cpu intensive. It would be great to use VisibilityDetector so that we could enable option to “auto-pause lottie when animation is outside the viewport”.