FLUTTER ECOSYSTEM

gbtb16/kiwi

一個簡單的編譯時依賴注入庫,適用於 Dart 和 Flutter

奇異果 專案封面
Stars
348
Forks
58
最近推送(UTC)
2026年8月17日
專案狀態
未封存
Gabriel Tavares GitHub avatar
GITHUB User

Gabriel Tavares ↗

Flutter does what you imagine. 🐤

PrologAppPalhoça, SC官方網站 ↗
語言DartShell

技術主題

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

kiwi

kiwi kiwi_generator dart_kiwi_example flutter_kiwi_example

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.

Kiwi

Pub

Source Code

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

Import it into your pubspec dependencies: section.

Kiwi Generator

Pub

Source Code

The package providing the generator.

Import it into your pubspec dev_dependencies: section.

Dart Kiwi Example

Source Code

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

Flutter Kiwi 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.