A simple yet efficient IoC container for Dart and Flutter, coupled with a powerful generator to allow you to write less code.
The container does not rely on reflection, it's just a Map
, so it's fast.
While using the generator, only constructor injection is supported.
IMPORTANT: Dart2 is required to use this package.
The core package providing the IoC container and the annotations which has no dependencies.
Import it into your pubspec dependencies:
section.
The package providing the generator.
Import it into your pubspec dev_dependencies:
section.
An example showing how to setup kiwi
and kiwi_generator
.
An example showing how to setup kiwi
and kiwi_generator
inside a Flutter project.
Feel free to contribute to this project.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a new feature, please send a pull request.
You can also contribute by buying a coffee or allowing me to dedicate more time maintaining the code 😉 .