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
scope

A Dart library for dependency injection using scopes and call‑stack based values.

pub.devRemove
ScoresHealth5050
Maintenance211 (best)
Quality100 (best)96
Popularity84 (best)66
Community3446 (best)
Compatibility100100
UsageDownloads (30 days)974k (best)244k
Likes63 (best)14
Pub points160 / 160 (best)150 / 160
GitHub stars75 (best)3
MaintenanceLatest release4.0.0, 2 years ago5.1.0, 2 years ago (best)
Major versions in 12 months00
Contributors6 (best)2
PublisherUnverifiedonepub.dev
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
  • Simple, zero‑boilerplate API
  • Supports nested scopes and temporary overrides
  • Works with pure Dart, no Flutter dependency
Weaknesses
  • Requires absolute imports for dependencies to avoid issues
  • Does not handle complex dependency graphs automatically without manual wiring
  • No code‑gen or compile‑time safety
  • Not integrated with Flutter widget tree like Provider
  • Async run change may break existing code
WarningsNoneNone
injector vs scope: which Flutter package should you use? | pubscout