talira

lottie (Flutter)

Pure Dart Lottie player for Flutter apps

open sourceMITfree

lottie is a Flutter package that renders Adobe After Effects animations exported as Lottie JSON (with Bodymovin) natively, on Android, iOS, macOS, Linux, Windows and the web. It's an unofficial pure Dart port of Lottie for Android with the same feature set. It loads animations from assets, the network or zip files, takes a custom AnimationController, lets you change properties at runtime, plays Telegram stickers (.tgs) and dotLottie files with a decoder, and has a render cache to cut CPU and GPU use.

Problems it solves

  • play an After Effects animation in my Flutter app
  • show a Lottie JSON loading animation in Flutter on every platform
  • display Telegram animated stickers in a Flutter app

Features

  • renders Lottie JSON animations with a Lottie widget
  • loads from assets, URLs and zip files
  • custom AnimationController for play, reverse and loop ranges
  • change colours and other properties at runtime
  • Telegram .tgs stickers and dotLottie files through decoders
  • frame-rate control and an offscreen render cache

Limitations

  • Supports the same feature set as Lottie for Android, so After Effects features Lottie doesn't support won't render.1

Alternatives

The same job

These do what lottie (Flutter) does.

  1. Rive Interactive graphics and animation engine with an editor, CLI and open source runtimes
  2. animations Pre-built Material motion transitions for Flutter apps

Compare lottie (Flutter) with the top 3