Skip to content

DependyDependency Injection for Dart & Flutter

Lightweight, modular dependency injection. Define providers, compose modules, and let Dependy wire it all together.

Simple by Design ​

  • Provider-based DI with lazy resolution
  • Composable modules and nested scopes
  • Singleton, transient, and scoped lifetimes
  • Tagged instances, decorators, and reset
  • Override providers for testing
  • Debug graph for inspecting the dependency tree
  • First-class Flutter integration
dart
import 'package:dependy/dependy.dart';

final module = DependyModule(
  providers: {
    DependyProvider<CounterService>(
      (_) => CounterService(),
    ),
  },
);

final counter = await module<CounterService>();
counter.increment();
print(counter.count); // 1

Released under the MIT License.