Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeinjectable

Convenient code generator for get_it dependency injection.

pub.devRemove
injector

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

pub.devRemove
ScoresHealth78 (best)50
Maintenance45 (best)2
Quality97100 (best)
Popularity91 (best)84
Community80 (best)34
Compatibility100100
UsageDownloads (30 days)470k974k (best)
Likes1.5k (best)63
Pub points160 / 160160 / 160
GitHub stars625 (best)75
MaintenanceLatest release3.0.0, 7 months ago (best)4.0.0, 2 years ago
Major versions in 12 months10 (best)
Contributors51 (best)6
Publishercodeness.lyUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies20 (best)
LicenseMITAPACHE-2.0
Setup effortMediumLow
JudgementStrengths
  • Reduces boilerplate associated with get_it registrations
  • Supports asynchronous initialization, singletons, factories, and factory parameters
  • Supports environments and named registrations
  • Simple and lightweight
  • Supports both dependencies (new instance each time) and singletons
  • Lazy loading of instances by default
Weaknesses
  • Requires running a code generator (build_runner or lean_builder)
  • Adds an extra build step during development
  • Requires absolute imports for dependencies to avoid issues
  • Does not handle complex dependency graphs automatically without manual wiring
WarningsNoneNone
injectable vs injector: which Flutter package should you use? | pubscout