Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeinjector

A simple to use and lightweight dependency injection library for Dart.

pub.devRemove
scoped_deps

A simple DI library using Dart Zones for scoped dependencies.

pub.devRemove
ScoresHealth5069 (best)
Maintenance257 (best)
Quality100100
Popularity84 (best)52
Community3441 (best)
Compatibility100100
UsageDownloads (30 days)976k (best)112k
Likes63 (best)9
Pub points160 / 160160 / 160
GitHub stars75 (best)0
MaintenanceLatest release4.0.0, 2 years ago0.2.1, 4 months ago (best)
Major versions in 12 months00
Contributors6 (best)1
PublisherUnverifiedmrgnhnt.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies0 (best)1
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Simple and lightweight
  • Supports both dependencies (new instance each time) and singletons
  • Lazy loading of instances by default
  • Zero code‑generation, works out of the box.
  • Scoped overrides are easy to test and work with async code.
  • Pure Dart, no platform‑specific setup.
Weaknesses
  • Requires absolute imports for dependencies to avoid issues
  • Does not handle complex dependency graphs automatically without manual wiring
  • Relies on Zones, which can be confusing for newcomers.
  • No compile‑time checks for missing bindings.
  • Smaller ecosystem compared to more popular DI packages.
WarningsNone
  • Single maintainer
injector vs scoped_deps: which Flutter package should you use? | pubscout