Skip to content
A simple compile-time dependency injection library for Dart and Flutter
Dart Shell Objective-C Java
Branch: master
Clone or download
Latest commit 209c12a Jun 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Fixed circular dependencies in example projects Sep 18, 2018
flutter_example upgrade dependencies Jun 8, 2019
images removed unused logo file Sep 10, 2018
kiwi upgrade dependencies Jun 8, 2019
kiwi_generator
tool configure travis with mono_repo Sep 10, 2018
.gitignore add generator Sep 5, 2018
.travis.yml add before install command Sep 10, 2018
LICENSE Initial commit Sep 1, 2018
README.md fix travis shield link [ci skip] Sep 11, 2018

README.md

kiwi

travis

Logo

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.

Container and annotations

Pub

Source Code

The core package providing the IoC container and the annotations which has no dependencies.

Import it into your pubspec dependencies: section.

Generator

Pub

Source Code

The package providing the generator.

Import it into your pubspec dev_dependencies: section.

Example

Source Code

An example showing how to setup kiwi and kiwi_generator.

Flutter Example

Source Code

An example showing how to setup kiwi and kiwi_generator inside a Flutter project.

Contributions

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 😉 Donate.

You can’t perform that action at this time.