
Personnaliser
Documentation
Animations
All non-trivial motion in the app is powered by Rive. Rive files are vector, GPU-accelerated, and much smaller than an equivalent Lottie.
Where they live
.riv files are stored under:
code
assets/animations/The app precaches them at launch, so first-frame time on the game screen stays negligible.
Replacing an animation
- Open the existing
.rivin the Rive editor — or create a fresh one with the same artboard name and state machine name used in the code. - Export as a runtime
.riv. - Drop the file into
assets/animations/under the same filename. - Restart the app.
If you rename the artboard or the state machine, you'll need to update the call sites — grep for the old name in lib/.
Adding a new animation
- Add the
.rivunderassets/animations/. - Add a constant for the path in
lib/src/utils/assets_utils.dart. - Load it with the existing
RiveAnimationwidget in the codebase — copy from an existing call site.
If you want an animation ready for a Rive brief, our own team can build it — see the Rive services page on Visuella.
Précédent
Assets
Suivant
Builder & publier