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
get_it

A fast, type-safe service locator for Dart and Flutter without BuildContext or code generation.

pub.devRemove
ScoresHealth6389 (best)
Maintenance85 (best)73
Quality100100
Popularity1298 (best)
Community080 (best)
Compatibility100100
UsageDownloads (30 days)2762.6M (best)
Likes104.7k (best)
Pub points160 / 160160 / 160
GitHub stars11.5k (best)
MaintenanceLatest release1.1.0, 4 weeks ago (best)9.3.0, 2 months ago
Major versions in 12 months00
Contributors048 (best)
PublisherUnverifiedflutter-it.dev
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationYesYes
Direct dependencies33
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • No runtime reflection due to build_runner code generation.
  • Scope-aware lifecycles integrated with Flutter widgets via KoinScopeHost.
  • Supports interface bindings using bindAs.
  • O(1) lookups using Dart maps with no code-generation overhead or build_runner steps
  • Rich lifecycle management including scopes, async initialization readiness (`allReady`), and LIFO disposal
  • Includes a dedicated DevTools extension to visually inspect registered objects
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.
  • Relies on runtime resolution, meaning missing registrations fail at runtime rather than compile-time
  • Service locator pattern can obscure direct class dependencies if overused
WarningsNoneNone
flutter_koin vs get_it: which Flutter package should you use? | pubscout