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
injectable

Convenient code generator for get_it dependency injection.

pub.devRemove
ScoresHealth6978 (best)
Maintenance91 (best)45
Quality9697 (best)
Popularity3091 (best)
Community1180 (best)
Compatibility100100
UsageDownloads (30 days)1.1k470k (best)
Likes171.5k (best)
Pub points150 / 160160 / 160 (best)
GitHub stars12625 (best)
MaintenanceLatest release4.0.0, 3 weeks ago (best)3.0.0, 7 months ago
Major versions in 12 months0 (best)1
Contributors251 (best)
PublisherUnverifiedcodeness.ly
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesYes
Direct dependencies1 (best)2
LicenseAPACHE-2.0MIT
Setup effortMediumMedium
JudgementStrengths
  • Supports hierarchical subscopes and named instances.
  • Automatic resource cleanup for Disposable dependencies.
  • Both manual bindings and annotation-based code generation are supported.
  • Reduces boilerplate associated with get_it registrations
  • Supports asynchronous initialization, singletons, factories, and factory parameters
  • Supports environments and named registrations
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.
  • Requires running a code generator (build_runner or lean_builder)
  • Adds an extra build step during development
WarningsNoneNone
cherrypick vs injectable: which Flutter package should you use? | pubscout