2d-inc / Flare-Flutter

Load and get full control of your Rive files in a Flutter project using this library.
https://rive.app/
MIT License
2.55k stars 469 forks source link

Initial loading: image/flare not visible #124

Closed pdefuns closed 5 years ago

pdefuns commented 5 years ago

We had to upgrade flare_flutter from version 1.3.13 to 1.5.4

With this newest version, all the flare animations are not shown initially. After some seconds, they are visible. But it looks really strange and we cannot go live like that.

luigi-rosso commented 5 years ago

The latest versions of Flare do load files asynchronously to prevent blocking the UI when waiting for the Flare file to load. I’m surprised it’s taking multiple seconds, unless you are using particularly complex Flare files. Could you share a file and maybe an example of how you are displaying it?

Also, are you testing on a physical device? If so, make sure to try it in release mode as the loading is significantly faster with AOT compilation.

pdefuns commented 5 years ago

Thanks for the fast response (as usual 👍 ) #kudos

In release mode it's better, thanks. Would it be possible to display the image from the design preview as long as the Flare is loaded?