Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecobalt

Dependency injection for Dart and Flutter with scopes, async ordering, and tests.

pub.devRemove
toor

Compile-time safe and easy to manage service locators for Dart and Flutter.

pub.devRemove
ScoresHealth64 (best)43
Maintenance86 (best)1
Quality97 (best)81
Popularity1224 (best)
Community646 (best)
Compatibility100100
UsageDownloads (30 days)1.1k1.3k (best)
Likes59 (best)
Pub points160 / 160 (best)150 / 160
GitHub stars07 (best)
MaintenanceLatest release1.9.2, 4 weeks ago (best)2.0.0, 3 years ago
Major versions in 12 months10 (best)
Contributors12 (best)
PublisherUnverifiedfperson.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies31 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Deterministic teardown in reverse creation order
  • Topological sorting for async dependency startup
  • Optional code generation allowing manual and generated factories to mix
  • Compile-time safety for service locators.
  • Supports multiple instances of Toor for isolated domains or testing.
  • No code generation setup required.
Weaknesses
  • Scopes dropped without dispose leak resources by design
  • Requires explicit teardown handling for third-party objects that do not implement Disposable
  • Manual wiring of dependencies.
  • Lacks advanced dependency graph validation tools found in codegen-based DI.
WarningsNoneNone
cobalt vs toor: which Flutter package should you use? | pubscout