rive-flutter icon indicating copy to clipboard operation
rive-flutter copied to clipboard

How to precache/preload Rive (.riv) animations?

Open carman247 opened this issue 4 years ago • 6 comments

I've found some info on how to preload Flare (.flr) animations but I can't find any info on how to export an animation from Rive as Flare.

Would be great if there was an example for either of these.

Many thanks

carman247 avatar Mar 18 '21 10:03 carman247

Yes same issue for me i'd like to precache .riv animations but couldn't find a way to do that .

amirbenasr avatar Mar 18 '21 11:03 amirbenasr

@luigi-rosso Please if there is any updates tell us , Thank you!

amirbenasr avatar Mar 18 '21 11:03 amirbenasr

We don't have an explicit API to do this yet.

One easy way to implement a similar concept is using a Flutter InheritedWidget to propagate your loaded RiveFiles to the rest of the widget hierarchy that needs it.

luigi-rosso avatar Mar 31 '21 02:03 luigi-rosso

I have an observation,

If riv files are considered text blobs we already have it cacheable via assetbundel right?

fredgrott avatar May 25 '21 16:05 fredgrott

I have an observation,

If riv files are considered text blobs we already have it cacheable via assetbundel right?

I didn't think about this would try it 😁

amirbennasr-smic avatar May 25 '21 18:05 amirbennasr-smic

@HayesGordon Is there an update on when this could be shipped? Thank you!

marcolatellafrias avatar Jan 26 '24 20:01 marcolatellafrias