Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecherrypick

Flexible and lightweight dependency injection library for Dart and Flutter.

pub.devRemove
get_it

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

pub.devRemove
ScoresHealth6989 (best)
Maintenance91 (best)73
Quality96100 (best)
Popularity3098 (best)
Community1180 (best)
Compatibility100100
UsageDownloads (30 days)1.1k2.6M (best)
Likes174.7k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars121.5k (best)
MaintenanceLatest release4.0.0, 3 weeks ago (best)9.3.0, 2 months ago
Major versions in 12 months00
Contributors248 (best)
PublisherUnverifiedflutter-it.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies1 (best)3
LicenseAPACHE-2.0MIT
Setup effortMediumLow
JudgementStrengths
  • Supports hierarchical subscopes and named instances.
  • Automatic resource cleanup for Disposable dependencies.
  • Both manual bindings and annotation-based code generation are supported.
  • 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
  • Potential misuse of bindings inside modules (e.g., resolving types via toInstance during registration can cause errors).
  • Requires careful lifecycle management of scopes and 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
cherrypick vs get_it: which Flutter package should you use? | pubscout