A Rive splash screen is one of the most common requests I get from Flutter teams, and also one of the easiest to get subtly wrong. The usual version plays a fixed-length animation, waits on a hard-coded timer, and then jumps to the home screen whether the app is ready or not. In this post I'll show a better pattern: the Rive animation plays an intro, loops for as long as your real startup work takes, and only plays its outro once your app says "ready". All of it is driven by Rive Data Binding (View Models), not the deprecated state machine inputs.
The code targets the current stable Rive Flutter runtime ( rive: ^0.14.11 ). I'll note the one change you need for the 0.15 dev release at the end.
Native launch screen vs. Rive splash screen
First, a reality check. When a Flutter app starts, the operating system shows the native launch screen before Flutter has drawn a single frame.β¦