Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_injections

A lightweight DI package for Flutter providing context‑free, module‑based dependency management.

pub.devRemove
get_it

A fast, type-safe service locator for Dart and Flutter without BuildContext or code generation.

pub.devRemove
ScoresHealth6289 (best)
Maintenance4973 (best)
Quality100100
Popularity2698 (best)
Community4680 (best)
Compatibility100100
UsageDownloads (30 days)3622.6M (best)
Likes224.7k (best)
Pub points160 / 160160 / 160
GitHub stars71.5k (best)
MaintenanceLatest release1.3.0, 7 days ago (best)9.3.0, 2 months ago
Major versions in 12 months00
Contributors248 (best)
Publishergabul.devflutter-it.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoYes
Direct dependencies0 (best)3
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Fast lookup using a search‑tree
  • Supports module‑level injection groups
  • Automatic disposal of objects
  • O(1) lookups using Dart maps with no code-generation overhead or build_runner steps
  • Rich lifecycle management including scopes, async initialization readiness (`allReady`), and LIFO disposal
  • Includes a dedicated DevTools extension to visually inspect registered objects
Weaknesses
  • No code‑generation or compile‑time checks
  • Smaller community compared to alternatives
  • Limited advanced features (scoping, lazy singletons)
  • Relies on runtime resolution, meaning missing registrations fail at runtime rather than compile-time
  • Service locator pattern can obscure direct class dependencies if overused
WarningsNoneNone
flutter_injections vs get_it: which Flutter package should you use? | pubscout