Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedepend

Dependency management and service access via InheritedWidget.

pub.devRemove
lite_ref

A lightweight, no‑dependency DI library for Dart and Flutter.

pub.devRemove
ScoresHealth7384 (best)
Maintenance9099 (best)
Quality100 (best)97
Popularity2658 (best)
Community4152 (best)
Compatibility100100
UsageDownloads (30 days)1.2k7.5k (best)
Likes1030 (best)
Pub points160 / 160160 / 160
GitHub stars719 (best)
MaintenanceLatest release5.2.0, 3 weeks ago1.0.1, today (best)
Major versions in 12 months0 (best)1
Contributors13 (best)
Publisherbangertstudio.kznosy.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies0 (best)2
LicenseBSD-3-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Provides built-in lazy initialization via `LazyGet` and `LazyFutureGet` with support for disposal callbacks.
  • Manages container lifecycles tied to `DependencyScope` widgets.
  • Supports asynchronous initialization and custom error handling.
  • Zero external dependencies, keeping the app size small.
  • Fast lookups without hash‑maps.
  • Built‑in disposal for ChangeNotifier/Disposable objects.
  • Simple API that’s easy to learn.
Weaknesses
  • Relies on widget-tree placement rather than a decoupled global container.
  • Documentation and ecosystem are smaller compared to alternative DI solutions.
  • Limited feature set compared to more mature DI containers.
  • No code‑generation support for compile‑time safety.
  • Smaller community and fewer third‑party extensions.
WarningsNoneNone
depend vs lite_ref: which Flutter package should you use? | pubscout