Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeinjectable_generator

Code generator that creates GetIt registrations for the injectable library

pub.devRemove
kiwi_generator

Generates dependency injection code using the kiwi package.

pub.devRemove
ScoresHealth74 (best)50
Maintenance57 (best)26
Quality7396 (best)
Popularity89 (best)38
Community8080
Compatibility8585
UsageDownloads (30 days)579k (best)3k
Likes137 (best)13
Pub points140 / 160150 / 160 (best)
GitHub stars625 (best)347
MaintenanceLatest release3.1.3, 3 months ago (best)4.2.1, 2 years ago
Major versions in 12 months10 (best)
Contributors51 (best)9
Publishercodeness.lygbtb16.com.br
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies129 (best)
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Reduces boilerplate and manual errors in service registration.
  • Supports advanced features such as private named parameters and multiple registrations.
  • Integrates with build_runner for fast incremental builds.
  • Provides type safety and compile‑time checks.
  • Reduces manual boilerplate code for kiwi container registrations
  • Supports named factories, custom constructors, and type resolution mapping via annotations
Weaknesses
  • Requires build_runner and a code‑generation step.
  • Only works with the injectable package; not a general DI solution.
  • Adds a dependency on the code‑generation tooling and can increase build times for very large projects.
  • Requires running build_runner for code generation
  • Tied strictly to the kiwi dependency injection package ecosystem
WarningsNoneNone
injectable_generator vs kiwi_generator: which Flutter package should you use? | pubscout