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.13k stars 197 forks source link

how to Cache tgs file . #327

Open mzelecom opened 6 months ago

mzelecom commented 6 months ago

i use this coed. Lottie.network(stik_ip + imageUrl, decoder: LottieComposition.decodeGZip, width: size, height: size, repeat: false, enableRenderCache: true, animate: false)

and load ok. but when no internet lottie file not show . how can i enable Cache.

xvrh commented 6 months ago

There is no persistent cache in this library. I recommend downloading the file yourself and saving it on disk. Then use Lottie.file to load it.