Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeinjector

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

pub.devRemove
klizma

A lightweight DI container for Dart with singleton and named factory support.

pub.devRemove
ScoresHealth50 (best)45
Maintenance2 (best)0
Quality100100
Popularity84 (best)20
Community3441 (best)
Compatibility100100
UsageDownloads (30 days)976k (best)1.6k
Likes63 (best)5
Pub points160 / 160160 / 160
GitHub stars75 (best)6
MaintenanceLatest release4.0.0, 2 years ago (best)0.2.1, 4 years ago
Major versions in 12 months00
Contributors6 (best)1
PublisherUnverifiedkarapetov.com
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies00
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Simple and lightweight
  • Supports both dependencies (new instance each time) and singletons
  • Lazy loading of instances by default
  • Zero external dependencies
  • Supports named factories
  • Simple API
  • Works on all Dart platforms
Weaknesses
  • Requires absolute imports for dependencies to avoid issues
  • Does not handle complex dependency graphs automatically without manual wiring
  • No code generation or annotations
  • Limited lifecycle control
  • No built‑in support for scoped or transient instances
  • No integration with Flutter widgets
WarningsNoneNone
injector vs klizma: which Flutter package should you use? | pubscout