Best Interactive Mascot Animation Tools for Flutter Apps
By the Charmotion team · Updated · How we write guides

For an interactive mascot in a Flutter app, Rive fits best: its Flutter runtime plays .riv files and lets Dart code change the character's state while the app runs. Lottie and dotLottie suit playback-only motion, and transparent video suits fixed clips. Choose by asking whether the mascot must react to the app.
Key takeaways
- Rive is the best fit when a Flutter mascot must react to app state, because its runtime plays .riv files with state machines and data binding.
- Lottie and dotLottie suit playback-only motion, and dotLottie can carry state machines where the Flutter package supports them.
- Transparent video is simple to ship but cannot respond to input, and alpha support depends on the video plugin you use.
- Keep mascot state in app code, because a removed and reinserted StatefulWidget gets a fresh State object.
- Charmotion outputs a .riv file with a mood number property, but it does not provide Flutter code.
Already have a character or logo? See examples in real app screens: splash, onboarding, loading and empty-state screens, with the animation that plays in each.
Which are the best interactive mascot animation tools for Flutter apps?
There is no single winner, because these options solve different problems. Start with one question: must the mascot change while the app runs? If it must, pick a runtime with state machines and data binding. If it only plays, a clip or a lightweight vector player may be enough.
| Option | How it runs in Flutter | Responds to app state | Best for |
|---|---|---|---|
| Rive (.riv) | The rive package, built on rive_native | Yes, through state machines and view models | Mascots that react to taps, errors and loading |
| Lottie or dotLottie | A Lottie player package (check its docs for dotLottie features) | Limited; dotLottie can carry state machines | Loaders, empty states and fixed celebrations |
| Transparent video | Plays through your video plugin | No, it plays one fixed clip | Trailers and social clips |
| Flutter animation code | Flutter's built-in animation classes, written in Dart | Yes, in code | Simple motion without an artist file |
Flutter targets Android and iOS, web, and desktop on macOS, Windows and Linux, so one mascot may need checking on several platforms. Runtime support differs by target, so test each one you ship.
How does the Rive Flutter runtime work?
Rive's Flutter runtime is the rive package on pub.dev, published by the verified publisher rive.app. It plays .riv files natively and is built on the rive_native plugin, which supplies the Rive renderer and the core C++ runtime. You add rive, not rive_native, because rive depends on rive_native and provides the user-facing API.
- Add the package. In pubspec.yaml, add rive with a caret version constraint. The official guide uses 0.14.11 in its example, and pub.dev listed 0.14.11 as the latest stable release with 0.15.0-dev.5 as a prerelease. Check the current number before you pin it.
- Install it. Run flutter pub get in the terminal.
- Let the setup script run. After the install, the rive_native setup script (dart run rive_native:setup) downloads prebuilt native libraries. Pass the --build flag to compile them locally instead.
- Plan for web. The setup script does not manage web binaries. On web, rive_native loads its WebAssembly module at runtime from Rive's CDN, pinned to the package version.
dependencies:
rive: ^0.14.11Before a release, verify two things: the rive_native version the rive package pins, and the platforms your build targets. Older tutorials use widget names from earlier releases, so follow the current docs for the widget API.
How do you change a mascot's mood from Flutter code?
The official Flutter docs list these RiveWidgetBuilder parameters: stateMachineSelector, dataBind (optional), controller (optional custom builder) and onLoaded. The state machine selector picks the machine that runs. The optional controller lets you build your own controller when the default is not enough.
Binding is where mood changes live. The docs show three ways to bind a view model instance: controller.dataBind(DataBind.auto()), DataBind.byName(...) and DataBind.byInstance(...). Auto binding uses the artboard's default view model. Naming the view model is clearer when a file has several.
Rive's data binding page explains the split. A view model describes a set of properties, but it cannot hold values. A view model instance holds the live values, and that is what your Dart code reads and writes.
Use state machines for transitions a designer defined, such as idle to happy after a tap. Use a number property for a mood that app code sets from its own state. The guide on Rive state machines covers inputs, and data binding in Flutter walks through the instance code.
Where does Charmotion fit in a Flutter project?
Disclosure: Charmotion is our product.
Charmotion is a character animation service. You upload one finished, coloured character image facing the viewer, pick animations such as launch, happy, wave, loading and thinking, and receive one Rive (.riv) file. The file includes CharacterViewModelMachine with a number property named mood, CharacterStateMachine with a number input named mood, and LaunchStateMachine when launch was picked.
The mood numbers are fixed: idle 0, happy 1, wave 2, thinking 3, sad 4, loading 5, listening 6, talking 7, sleeping 8 and attention 9. A Flutter app would set the mood through data binding, following the pattern in the previous section. Charmotion has no one-shot triggers for success or error, so show a success with happy and an error with sad.
Charmotion does not provide Flutter code. Its paste-ready code covers web, React and SwiftUI, with a README and an AI_README, so the Dart wiring is yours to write. Idle is included free, and each other animation costs 1 credit. See pricing for plan details. Rive's runtimes play any .riv file, so a Charmotion file loads in the Flutter runtime the same way a hand-built file does.
When are Lottie or video files the better choice?
Lottie is a JSON vector format, and dotLottie is a packaging format from LottieFiles that bundles animations with their assets. dotLottie files can also carry themes and state machines, and official runtimes exist for web, iOS, Android and other platforms. Whether a given Flutter package reads those state machines is up to that package, so check its documentation before you rely on them.
Lottie suits motion that plays from start to finish: a loader, an empty-state illustration or a success flourish. A mascot that must answer a tap needs more than playback.
Video is the simplest asset to ship, but it cannot respond to input. Transparency also depends on the format. WebM with VP9 alpha displays in Chromium-based browsers and Firefox, and Safari has been reported to ignore it. Apple's HEVC with alpha targets Safari, so many web builds need both files. Flutter video playback depends on the plugin you choose, so check that plugin for alpha support. The transparent MP4 and HEVC guide covers the file details.
- Choose video for trailers, ads and fixed social clips.
- Choose Lottie for loaders, empty states and one-off celebrations.
- Choose Rive when the mascot must respond to taps, errors or app state.
How should the mascot behave across Flutter's widget lifecycle?
Flutter rebuilds widgets often, so the mascot's state has to survive those rebuilds. A StatefulWidget gets a State object when the framework calls createState. If the widget leaves the tree and returns later, the framework calls createState again and the new State starts fresh. A mood held only in that State object resets on reinsertion.
Keep the mood in app state, such as a provider, a store or the screen's own model, and push it into the view model instance when it changes. StatefulWidget also has didUpdateWidget, which receives the old widget so you can compare it with the current one. Use it when a new parameter, such as a loading flag, should change the mascot.
For app-level events, AppLifecycleListener accepts callbacks for resume, pause, inactive, hide, show and detach. A mascot can pause a looping animation on pause and resume it on resume. The guides on adding animation to a Flutter app and animated splash screens in Flutter cover the setup.
If you need a mascot built from one character image without an artist, Charmotion's character set is one route, described above.
Frequently asked questions
Does the Rive Flutter runtime need an account?
Trying the runtime needs no account, according to the Rive page on pub.dev. Writing the .riv file that ships in an app needs a free Rive account. On Rive's Free plan, exported files play a Rive splash screen, while paid plans export without it. Plan details change, so check the pricing guide before you ship.
Can a Flutter app play a Lottie file instead?
Lottie playback is possible through a Flutter package, but the features you get depend on that package. Lottie is built for playback, and state-driven behavior depends on dotLottie support in the package you choose. For a side-by-side view of runtime and state logic, read the Lottie and Rive comparison for React Native and Flutter.
Do I need code to make a mascot react to the app?
Some reactions need no code, because a state machine can move between states on inputs defined inside the file. Reacting to app events, such as a finished upload or a network error, needs Dart code that sets a view model property or a state machine input. List the events that matter before you design the states.
Sources
- Rive Flutter runtime guide, Rive
- rive package, pub.dev
- Rive data binding in Flutter, Rive
- StatefulWidget class, Flutter
- dotLottie format, LottieFiles
- Alpha transparency in Chrome video, Google Chrome Developers