Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeauto_injector

Automatic dependency injection system for Dart and Flutter without build_runner.

pub.devRemove
inject_generator

Source code generator for compile-time dependency injection using annotations.

pub.devRemove
ScoresHealth75 (best)67
Maintenance4462 (best)
Quality100 (best)91
Popularity74 (best)50
Community80 (best)52
Compatibility100 (best)85
UsageDownloads (30 days)55k143k (best)
Likes119 (best)6
Pub points160 / 160 (best)140 / 160
GitHub stars59 (best)14
MaintenanceLatest release2.2.0, 5 months ago1.2.1, 3 months ago (best)
Major versions in 12 months00
Contributors11 (best)3
Publisherflutterando.com.brdasralph.de
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesNo
KindPure DartPure Dart
Code generationYesYes
Direct dependencies2 (best)14
LicenseMITMIT
Setup effortLowMedium
JudgementStrengths
  • No build_runner required
  • Supports modularization and hierarchical injectors
  • Handles automatic parameter injection and bind configuration
  • Zero runtime overhead and no reflection (no dart:mirrors)
  • Compile-time validation catches missing bindings and cycles early
  • Strong Flutter integration via inject_flutter and ViewModelFactory
Weaknesses
  • Relies on runtime reflection/analysis instead of compile-time code generation
  • Fewer community packages or extensions compared to older established alternatives like get_it
  • Requires running build_runner after annotation changes
  • Generated code adds build artifacts to your project
WarningsNoneNone
auto_injector vs inject_generator: which Flutter package should you use? | pubscout