Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_simple_dependency_injection

A simple dependency injection and service locator implementation that avoids mirrors.

pub.devRemove
get_it

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

pub.devRemove
ScoresHealth4989 (best)
Maintenance073 (best)
Quality100100
Popularity5998 (best)
Community1780 (best)
Compatibility100100
UsageDownloads (30 days)5.2k2.6M (best)
Likes744.7k (best)
Pub points160 / 160160 / 160
GitHub stars941.5k (best)
MaintenanceLatest release2.0.0, 6 years ago9.3.0, 2 months ago (best)
Major versions in 12 months00
Contributors348 (best)
PublisherUnverifiedflutter-it.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies0 (best)3
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • No code generation or mirrors required, leading to high performance.
  • Supports multiple named injectors and isolated containers.
  • Allows passing additional parameters when retrieving instances.
  • 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
  • Manual mapping of every type and dependency is required.
  • No compile-time safety or verification of dependencies.
  • 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_simple_dependency_injection vs get_it: which Flutter package should you use? | pubscout