Flare-flutter: Load and use external remote asset

Created on 30 Aug 2019  路  4Comments  路  Source: 2d-inc/Flare-Flutter

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?

Most helpful comment

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.

All 4 comments

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

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

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.

hi @ybbaigo this is great!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rohan20 picture rohan20  路  6Comments

parlux picture parlux  路  4Comments

BrainRayChristensen picture BrainRayChristensen  路  7Comments

kautukkundan picture kautukkundan  路  3Comments

jaumard picture jaumard  路  6Comments