Flare-Flutter icon indicating copy to clipboard operation
Flare-Flutter copied to clipboard

Load and use external remote asset

Open nisimjoseph opened this issue 6 years ago • 4 comments

I want to load the Welcome screen dynamically using A/B testing, meaning the Flare file will be load from the network. I know I can download a file, but Flare is allowing to load the file only from assets folder (AssetBundle). the file location is like "assets/filename.flr". I search in the docs and can't find how to load from other application storage than the "assets" folder. want to load from the cache folder. Any example of how to do it or is it possible in Flutter?

nisimjoseph avatar Aug 30 '19 10:08 nisimjoseph

To my knowledge this isn't something you can do yet with Flare-Flutter, I know I've seen a couple of posts on similar issues by the developer saying this is something they want to handle but currently it doesn't

cmcgill1988 avatar Sep 25 '19 10:09 cmcgill1988

I believe this is a duplicate of https://github.com/2d-inc/Flare-Flutter/issues/202

jkurtw avatar Jan 06 '20 18:01 jkurtw

Hi @nisimjoseph , right now I'm adding MemoryFlare https://github.com/2d-inc/Flare-Flutter/pull/215 , with this provider, you can fetch flare data by yourself and render it with FlareActor.memory(xxx)

I'm also planning to add a light version FlareActor.network later, will update this thread once it's ready.

yuwen-yan avatar Jan 07 '20 00:01 yuwen-yan

hi @ybbaigo this is great!!!

nisimjoseph avatar Jan 07 '20 09:01 nisimjoseph