RiveAnimation widget mentioned throughout the runtime help docs. However, there are cases where you may want to set up animation or state machine controllers associated with the Rive widget before the Artboard is rendered. Check out below for other ways to integrate Rive into your Flutter applications:
Alternative Methods
File loading
If you want to load in the.riv file from the rootBundle, you’ll need to import the data yourself. The main pattern here is:
Associate controllers to an Artboard
If you’re looking to just play a specific animation:If you’re looking to play a state machine: