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 468 forks source link

Flutter Flare animation, How to start and stop animation automatically when it finishes #285

Open m-amin opened 4 years ago

m-amin commented 4 years ago

I want to apply animation when user clicks on addToFavorite button. So animation starts and finishes. Like in this example https://stackoverflow.com/questions/64609421/flutter-how-to-play-flare-animation-on-page-when-user-clicks-on-button

umberto-sonnino commented 4 years ago

One possible solution is to use a Stack in Flutter to overlay things on top. This might be more Flutter-related than Flare-related, though!