A practical Flutter integration starts with the exported file, selected runtime and control contract. Choose the right artboard and behavior, then verify transitions and lifecycle handling on your target screens.
Written for: Flutter developers and product teams commissioning interactive assets.
Confirm the runtime before copying a sample
Rive’s current Flutter documentation describes the rendering and loading widgets for the selected runtime. It also provides migration guidance because older integration patterns and newer APIs differ. Record the package version your team will use before writing implementation instructions.
This guide covers the integration sequence and acceptance decisions. It deliberately does not present a single SDK snippet as compatible with every Flutter/Rive version. Consult the official sample for your chosen release, then apply the exported control names from your file.
Step 1: inspect the delivered export
Record the filename, revision, artboard and State Machine or ViewModel. Confirm that any required data instance is exported and that the intended default behavior is documented. Do not guess the machine name from the product’s screen label.
The Puppy Companion demo uses the Preview artboard and Main State Machine with blink and breathing animations. It declares no legacy State Machine inputs. That makes it a useful reminder that a visible character is not automatically a library of app-controlled triggers.
Step 2: map app events to documented controls
List each product event and the corresponding visual request. Waiting is an ongoing condition; an earned celebration may be a one-shot request. Agree the control type, initial value, valid range and reset policy for each.
Illustrative event contract — not Dart API calls
Screen opens → agreed neutral state
Request starts → waiting behavior
Request succeeds → acknowledgement, then neutral
Request cancelled → clear waiting and restore defaultKeep that contract independent of the app’s network implementation. The animation consumes the outcome the app provides; it should not infer success from an elapsed timer.
Step 3: load and lay out the character in its real screen
Use the file-loading and rendering approach recommended for your selected runtime. Rive’s current Flutter guide distinguishes rendering, loading/error handling and resource-management responsibilities. Decide how loading, failure and disposal are handled before adding more character behavior.
Give the view explicit layout constraints and preserve artboard proportions. Review the character beside the actual app controls, safe areas and text. Check more than the artboard at full size: a small expression can disappear when the mascot is placed beside a form or navigation bar.
Step 4: define lifecycle and reset behavior
Choose what happens when the screen is left, restored, resized or backgrounded. A character should not create a second set of listeners on each visit. If several screens reuse file data, distinguish that shared asset from the player instance that owns a particular screen’s state.
For a speaking character, the app owns playback timing and interruption unless integration is included separately. Clearing an old audio response should also clear its pending mouth updates. The speech guide explains why audio-level and viseme control need different data.
Step 5: test transition sequences on the target runtime
- Default load and a repeat screen visit.
- Waiting → success → idle and waiting → error → retry.
- Rapid updates, cancellation and unsupported values.
- Background/resume and orientation changes where relevant.
- Visual readability and clipping on representative devices.
- Accessible surrounding actions and the agreed reduced-motion presentation.
Record the file revision and runtime used for the checks. A browser portfolio demo is useful evidence of artwork and web behavior; the Flutter target still needs its own compatibility and device review.
Request a handoff built around your Flutter app
Share your Flutter/Rive version, target screens, artwork and required behavior. Agree whether the engagement includes animation assets and documentation only or additional integration support. That boundary should be clear before delivery.
Explore Flutter Rive animation services and the handoff checklist for the information a developer should receive. For character design as well as implementation planning, start with App Mascot services.