Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributedepend

Dependency management and service access via InheritedWidget.

pub.devRemove
yx_scope

A compile-safe dependency injection framework with advanced scoping capabilities.

pub.devRemove
ScoresHealth7384 (best)
Maintenance90 (best)79
Quality100100
Popularity2664 (best)
Community4180 (best)
Compatibility100100
UsageDownloads (30 days)1.2k8.3k (best)
Likes1072 (best)
Pub points160 / 160160 / 160
GitHub stars764 (best)
MaintenanceLatest release5.2.0, 3 weeks ago (best)1.2.2, 6 weeks ago
Major versions in 12 months00
Contributors111 (best)
Publisherbangertstudio.kzdev.go.yandex
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies0 (best)1
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.
  • Compile-safe access to dependencies and existence of active scopes
  • No code generation required
  • Supports asynchronous dependencies and custom scope nesting
Weaknesses
  • Relies on widget-tree placement rather than a decoupled global container.
  • Documentation and ecosystem are smaller compared to alternative DI solutions.
  • Requires manual declaration of dependency containers and scopes
  • Less community-standard compared to global service locators
WarningsNoneNone
depend vs yx_scope: which Flutter package should you use? | pubscout