Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_simple_dependency_injection

A simple dependency injection and service locator implementation that avoids mirrors.

pub.devRemove
injectable

Convenient code generator for get_it dependency injection.

pub.devRemove
ScoresHealth4978 (best)
Maintenance045 (best)
Quality100 (best)97
Popularity5991 (best)
Community1780 (best)
Compatibility100100
UsageDownloads (30 days)5.2k470k (best)
Likes741.5k (best)
Pub points160 / 160160 / 160
GitHub stars94625 (best)
MaintenanceLatest release2.0.0, 6 years ago3.0.0, 7 months ago (best)
Major versions in 12 months0 (best)1
Contributors351 (best)
PublisherUnverifiedcodeness.ly
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies0 (best)2
LicenseMITMIT
Setup effortLowMedium
JudgementStrengths
  • No code generation or mirrors required, leading to high performance.
  • Supports multiple named injectors and isolated containers.
  • Allows passing additional parameters when retrieving instances.
  • Reduces boilerplate associated with get_it registrations
  • Supports asynchronous initialization, singletons, factories, and factory parameters
  • Supports environments and named registrations
Weaknesses
  • Manual mapping of every type and dependency is required.
  • No compile-time safety or verification of dependencies.
  • Requires running a code generator (build_runner or lean_builder)
  • Adds an extra build step during development
WarningsNoneNone
flutter_simple_dependency_injection vs injectable: which Flutter package should you use? | pubscout