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

Animations List in runtime #138

Closed nisimjoseph closed 5 years ago

nisimjoseph commented 5 years ago

I want to get all animation list defined in the Flare file and that Flutter can run. for example, let's say I have 4 animations which supposed to be in the Flare file but one is missing, I can't find the API for this. how can I know it missing or how can I know all the ones I can play?

luigi-rosso commented 5 years ago

I’m not at my desk right now, but look into some of our examples that use custom a FlareController. You can query the artboard for animations (either via artboard.getAnimation or access the full list via artboard.animations).

luigi-rosso commented 5 years ago

This article is a little more in-depth but it also discusses controllers: https://medium.com/2dimensions/building-an-interactive-login-screen-with-flare-flutter-749db628bb51

nisimjoseph commented 5 years ago

thank you.