パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v4.2.1

kiwi_generator

kiwiパッケージを使用して依存関係のインジェクションコードを生成し、開発時間を短縮します。

macOSWindowsLinux
30日間ダウンロード
2880
いいね数
13
Pub ポイント
150

パッケージをインストール

flutter pub add kiwi_generator

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Kiwi Generator は、Kiwi パッケージを使用して依存関係のインジェクション設定を自動化するコード生成ツールであり、ボイラープレートコードと開発時間を大幅に削減します。アノテーションに基づいてクリーンで型安全なインジェクションコードを生成し、Flutter アプリケーションにおける依存関係の効率的な管理を可能にします。ビルド時コード生成を活用することで、パフォーマンスを確保しつつ実行時のオーバーヘッドを低減します。このジェネレーターは Kiwi DI フレームワークとシームレスに統合され、macOS、Windows、Linux でのクロスプラットフォーム開発をサポートしています。手動設定なしでスムーズな依存関係管理を求める開発者に最適です。

用途

  • 依存関係のインジェクション設定の自動化
  • 大規模アプリにおけるボイラープレートの削減
  • テスト可能なアーキテクチャの最適化
  • 型安全なインジェクションの有効化
  • スケーラブルなアプリ構造をサポートする

主な機能

  • ビルド時コード生成
  • アノテーションベースの構成
  • 型安全な依存関係の解決
  • Kiwi とのシームレスな統合
  • クロスプラットフォーム対応

適している対象

  • 大規模なFlutterプロジェクト
  • 保守性を重視するチーム
  • 依存関係のインジェクションを使用する開発者
  • テスト可能なアーキテクチャを必要とするアプリ
  • 手動設定を減らすことを目指すプロジェクト

注意事項

  • Kiwi DIの原則を理解する必要があります
  • コード生成には build_runner が必要です
  • 初期ビルド時間を増加させる可能性があります
  • 手動DIと比較してカスタマイズの選択肢が限られている
  • Kiwiパッケージのバージョン互換性に依存

元の README

関連するソースリポジトリの 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.

カテゴリー

依存関係

依存関係一覧 9 件

ソースリポジトリ

このパッケージを使用しているプロジェクト