Skip to content
pubscout

dotlottie_flutter

0.3.0, released 3 days ago by lottiefiles.com

Render dotLottie and Lottie animations in Flutter with playback control.

WASM-ready
$ flutter pub add dotlottie_flutter
Source repository

What it does

A Flutter plugin for rendering Lottie and dotLottie animations. It supports playback control, theming, state machines, and audio across Android, iOS, macOS, Web, Windows, and Linux.

AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to render Lottie or dotLottie animations in your Flutter application.
  • You require advanced animation features like state machines, theming, or dynamic slots.

Skip it when

  • You only need simple pre-cached raster images and do not require vector-based animations.

Strengths

  • Cross-platform support including iOS, Android, macOS, Web, Windows, and Linux.
  • Full playback control, state machines, and theme support.
  • Ability to load animations from URLs, assets, local files, or raw JSON strings.

Weaknesses

  • Requires platform-specific dependencies or configuration such as JitPack for Android.
  • Some features like local file loading are not supported on the web platform.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

Android requires adding jitpack to build.gradle.kts. Windows and Linux use pre-built binaries bundled with the plugin.

DotLottieView(
  sourceType: 'url',
  source: 'https://lottie.host/your-animation.lottie',
  autoplay: true,
  loop: true,
)

Alternatives

Packages that do the same job and could replace dotlottie_flutter.

Works with

Packages commonly used together with dotlottie_flutter: ones it builds on, ones built on it, and its own family.