flutter-it/get_it
Get It - Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App. Maintainer: @escamoteur observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 68
- Release rhythm 9
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3027
- days_rel: 396
- days_push: 195
- n_releases_24m: 1
Adoption not part of the score
1471 stars · 162 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
get_it is a fast, type-safe service locator for Dart and Flutter that lets you register services once and access them from anywhere without BuildContext or code generation. It supports scopes, async singletons, test-friendly resets, and a DevTools extension for inspecting registrations.
Use cases
- access services from anywhere in a flutter app without context
- decouple interfaces from concrete implementations in dart
- dependency injection without code generation
- swap real services for mocks in tests
- manage singletons and scoped instances in flutter apps
- use a service locator in pure dart server or cli apps
When to choose
- you want simple, fast O(1) service lookup with zero boilerplate
- you need to access business logic outside the widget tree
- you prefer a service locator over codegen-based DI like injectable or riverpod providers
- you work in pure Dart as well as Flutter
When to avoid
- you prefer constructor-based dependency injection with compile-time graph validation
- your team mandates an InheritedWidget/Provider-based approach tied to the widget tree
- you need auto-discovery of dependencies via annotations and build_runner
Facets
library · maturity active
developer-tools plugin-system mobile-development developer-tools cross-platform cross-platform cli service-locator dependency-injection flutter dart state-management ioc-container mobile web-server
5 sources
- readme: https://github.com/flutter-it/get_it · fetched 2026-08-28 · 0d918dfbedef
- homepage: https://pub.dev/packages/get_it · fetched 2026-08-29 · 035ba0ce47b3
- site_page: https://pub.dev/packages/get_it/install · fetched 2026-08-29 · b16007426b21
- site_page: https://pub.dev/documentation/get_it/latest · fetched 2026-08-29 · ab6021255c52
- site_page: https://pub.dev/packages/get_it/changelog · fetched 2026-08-29 · b1e35294b8f2
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| flutter-it/get_it | main | 54 |
For agents
markdown · JSON · MCP: product_card(name="flutter-it/get_it")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem