weave_di 3.4.1 copy "weave_di: ^3.4.1" to clipboard
weave_di: ^3.4.1 copied to clipboard

Dependency injection and typed routing for Flutter in one package. Scopes, parameterized factories, circular-dependency detection, route guards, middleware and transitions. No code generation.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add weave_di

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

dependencies:
  weave_di: ^3.4.1

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:weave_di/weave_di.dart';
0
likes
140
points
197
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dependency injection and typed routing for Flutter in one package. Scopes, parameterized factories, circular-dependency detection, route guards, middleware and transitions. No code generation.

Repository (GitHub)
View/report issues
Contributing

Topics

#dependency-injection #routing #navigation #modular #guards

License

MIT (license)

Dependencies

flutter

More

Packages that depend on weave_di