Packages
Ark DI packages
Pure-Dart object-graph runtime and its nested Flutter integration.
v1.1.0Beginner
Ark DI packages
| Package | Add it when | Do not expect it to own |
|---|---|---|
ark_di | Dart code needs immutable registration, contextual resolution, hierarchy, async initialization, ownership, and teardown | Business state, repositories, navigation, global access |
ark_di_flutter | A Flutter tree needs root and child Scope lifetimes or typed BuildContext access | Core registration semantics, Widget-local controllers, automatic Service Locator |
ark_di_flutter depends on the core package and adapts the same containers. Add ark_di directly when application code imports core types. The optional locator adapter is a separate library inside the Flutter package and never creates package-owned global state.
Both packages include optional, version-matched coding-agent skills for container configuration and Flutter Scope integration.