Skip to content
forked from gbtb16/kiwi

A simple compile-time dependency injection library for Dart and Flutter

License

Notifications You must be signed in to change notification settings

ruicraveiro/kiwi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

IMPORTANT: From 1.0.0 Container is removed. Use KiwiContainer instead. (better Flutter support)

KiwiContainer 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.

About

A simple compile-time dependency injection library for Dart and Flutter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 90.7%
  • Shell 7.8%
  • Objective-C 1.3%
  • Java 0.2%