Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeget_it

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

pub.devRemove
injector

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

pub.devRemove
ScoresHealth89 (best)50
Maintenance73 (best)2
Quality100100
Popularity98 (best)84
Community80 (best)34
Compatibility100100
UsageDownloads (30 days)2.6M (best)976k
Likes4.7k (best)63
Pub points160 / 160160 / 160
GitHub stars1.5k (best)75
MaintenanceLatest release9.3.0, 2 months ago (best)4.0.0, 2 years ago
Major versions in 12 months00
Contributors48 (best)6
Publisherflutter-it.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies30 (best)
LicenseMITAPACHE-2.0
Setup effortLowLow
JudgementStrengths
  • 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
  • Simple and lightweight
  • Supports both dependencies (new instance each time) and singletons
  • Lazy loading of instances by default
Weaknesses
  • Relies on runtime resolution, meaning missing registrations fail at runtime rather than compile-time
  • Service locator pattern can obscure direct class dependencies if overused
  • Requires absolute imports for dependencies to avoid issues
  • Does not handle complex dependency graphs automatically without manual wiring
WarningsNoneNone
get_it vs injector: which Flutter package should you use? | pubscout