Open mzelecom opened 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)
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.
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.
Lottie.file
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.