The lottie package renders Adobe After Effects animations exported as JSON inside Flutter apps. It is a Dart port inspired by the Android Lottie implementation.
Overview
Lottie for Flutter displays Bodymovin JSON animations natively in Flutter widgets. The package parses composition data and drives playback on supported Flutter targets without embedding a separate native Lottie runtime for the core player logic.
Widgets can load animations from assets, network URLs, or memory, with optional custom AnimationController control for play, pause, looping, and seeking. Sizing follows the same patterns as the Image widget. Lower-level APIs allow drawing a composition on a custom canvas or changing layer properties at runtime through value delegates.
The library supports Telegram sticker (.tgs) and DotLottie (.lottie) archives via custom decoders, configurable frame rates, and an optional render cache to reduce repeated rendering cost at the expense of memory. Feature coverage aligns with Lottie Android.
Flutter web builds are typically run with the CanvasKit web renderer for previews. The package is published for Flutter and lists Android, iOS, Linux, macOS, Windows, and web as platforms.
Key features
- Asset, network, and memory loaders
- Custom AnimationController
- Runtime property delegates
- TGS and DotLottie decoders
- Configurable frame rate
- Optional render cache
- Custom canvas drawing
- Image-like size and fit controls
Use cases
- In-app motion graphics
- After Effects animations in Flutter
- Controlled UI animation playback
- Sticker and DotLottie assets