flutter_lean_di 0.1.0 copy "flutter_lean_di: ^0.1.0" to clipboard
flutter_lean_di: ^0.1.0 copied to clipboard

Service-locator-based dependency injection for Flutter, with modules, reactivity, and scopes bound to the widget tree but accesible outside it.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add flutter_lean_di

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:
  flutter_lean_di: ^0.1.0

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:flutter_lean_di/flutter_lean_di.dart';
10
likes
160
points
338
downloads

Documentation

API reference

Publisher

verified publisherleancode.co

Weekly Downloads

Service-locator-based dependency injection for Flutter, with modules, reactivity, and scopes bound to the widget tree but accesible outside it.

Repository (GitHub)
View/report issues

License

Apache-2.0 (license)

Dependencies

flutter, lean_di, rxdart

More

Packages that depend on flutter_lean_di