Skip to content

v2.1.0

Choose a tag to compare

@xvrh xvrh released this 14 Dec 13:12
· 105 commits to master since this release
8dcb052
  • Improve the cache to ensure that the animation is available on the first frame.
    The method AssetLottie('anim.json').load() returns a SynchronousFuture if it has been loaded previously.
  • Expose the LottieCache singleton.
    It allows to change the cache behaviour and clear the entries.
void main() {
  Lottie.cache.maximumSize = 10;
  Lottie.cache.clear();
  Lottie.cache.evict(NetworkLottie('https://lottie.com/anim.json'));
}