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

Rework the cache so animation can be loaded without flickering 1 frame #246

Closed xvrh closed 1 year ago

xvrh commented 1 year ago

Improve the cache mechanism to ensure that there is not an empty frame each time we load an animation. Now, the cache can return a SynchronousFuture when the composition is already available.