Skip to content
pubscout

dotlottie_loader

0.0.6, released 7 months ago by sartajroshan.tech

Lightweight dotLottie file loader and extractor for Flutter.

$ flutter pub add dotlottie_loader
Source repository

What it does

Loads and extracts .lottie files from assets or network sources, providing access to the underlying animations and assets for use with the lottie package.

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

Use it when

  • Your existing app already depends on dotlottie_loader
  • You need a lightweight helper for dotLottie file extraction
  • You prefer the current loader-style workflow

Skip it when

  • Starting a new Flutter project
  • You want long-term feature updates and the official ecosystem path

Strengths

  • Supports multiple platforms including Android, iOS, web, Windows, macOS, and Linux
  • Simple API to load from assets or network
  • Provides direct access to manifest, animations, and images

Weaknesses

  • Currently in maintenance mode and not recommended for new projects
  • Does not use the same API as the official dotlottie-flutter package

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Requires adding the package and the lottie package to pubspec.yaml

DotLottieLoader.fromAsset("assets/anim2.lottie", frameBuilder: (BuildContext ctx, DotLottie? dotlottie) {
  if (dotlottie != null) {
    return Lottie.memory(dotlottie.animations.values.single);
  } else {
    return Container();
  }
})

Alternatives

Packages that do the same job and could replace dotlottie_loader.

Works with

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