Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeinjectable

Convenient code generator for get_it dependency injection.

pub.devRemove
yx_scope

A compile-safe dependency injection framework with advanced scoping capabilities.

pub.devRemove
ScoresHealth7884 (best)
Maintenance4579 (best)
Quality97100 (best)
Popularity91 (best)64
Community8080
Compatibility100100
UsageDownloads (30 days)470k (best)8.3k
Likes1.5k (best)72
Pub points160 / 160160 / 160
GitHub stars625 (best)64
MaintenanceLatest release3.0.0, 7 months ago1.2.2, 6 weeks ago (best)
Major versions in 12 months10 (best)
Contributors51 (best)11
Publishercodeness.lydev.go.yandex
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies21 (best)
LicenseMITMIT
Setup effortMediumLow
JudgementStrengths
  • Reduces boilerplate associated with get_it registrations
  • Supports asynchronous initialization, singletons, factories, and factory parameters
  • Supports environments and named registrations
  • Compile-safe access to dependencies and existence of active scopes
  • No code generation required
  • Supports asynchronous dependencies and custom scope nesting
Weaknesses
  • Requires running a code generator (build_runner or lean_builder)
  • Adds an extra build step during development
  • Requires manual declaration of dependency containers and scopes
  • Less community-standard compared to global service locators
WarningsNoneNone
injectable vs yx_scope: which Flutter package should you use? | pubscout