Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_koin

A lightweight dependency injection library for Flutter with code generation and scopes.

pub.devRemove
injectable

Convenient code generator for get_it dependency injection.

pub.devRemove
ScoresHealth6378 (best)
Maintenance86 (best)45
Quality100 (best)97
Popularity1291 (best)
Community080 (best)
Compatibility100100
UsageDownloads (30 days)276470k (best)
Likes101.5k (best)
Pub points160 / 160160 / 160
GitHub stars1625 (best)
MaintenanceLatest release1.1.0, 4 weeks ago (best)3.0.0, 7 months ago
Major versions in 12 months0 (best)1
Contributors051 (best)
PublisherUnverifiedcodeness.ly
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationYesYes
Direct dependencies32 (best)
LicenseMITMIT
Setup effortLowMedium
JudgementStrengths
  • No runtime reflection due to build_runner code generation.
  • Scope-aware lifecycles integrated with Flutter widgets via KoinScopeHost.
  • Supports interface bindings using bindAs.
  • Reduces boilerplate associated with get_it registrations
  • Supports asynchronous initialization, singletons, factories, and factory parameters
  • Supports environments and named registrations
Weaknesses
  • Generated factories and dependency resolution are strictly synchronous.
  • Does not support generic classes or constructors with optional parameters for injection.
  • Root-scoped dependencies cannot depend on feature-scoped dependencies.
  • Requires running a code generator (build_runner or lean_builder)
  • Adds an extra build step during development
WarningsNoneNone
flutter_koin vs injectable: which Flutter package should you use? | pubscout