Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to Cache tgs file . #327

Open
mzelecom opened this issue Dec 22, 2023 · 1 comment
Open

how to Cache tgs file . #327

mzelecom opened this issue Dec 22, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mzelecom
Copy link

mzelecom commented Dec 22, 2023

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.

@mzelecom mzelecom changed the title how to cashe tgs file . how to Cache tgs file . Dec 22, 2023
@xvrh
Copy link
Owner

xvrh commented Dec 22, 2023

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.

@xvrh xvrh added enhancement New feature or request help wanted Extra attention is needed labels Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants