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

flutter_redux_dev_tools のカバー
パッケージ詳細v0.5.2

flutter_redux_dev_tools

Flutter用のタイムトラベル可能なReduxデバッガー

30日間ダウンロード
2150
いいね数
14
Pub ポイント
60

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

flutter pub add flutter_redux_dev_tools

パッケージ概要

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

Flutter向けの時系列を遡るReduxデバッガーで、開発者がアプリ開発中に状態変更を確認および再実行できます。Reduxとシームレスに統合されており、アクションの追跡、状態遷移の表示、アプリの履歴を前後にステップして問題をデバッグするための視覚的インターフェースを提供します。複雑な状態管理ワークフローに最適で、デバッグ効率を向上させ、状態の進化をよりよく理解するのに役立ちます。ツールはライトモードとダークモードの両方をサポートしており、Flutterのテーマ機能と一致しています。

用途

  • 複雑な状態遷移のデバッグ
  • 問題の再現のためのユーザー操作の再生
  • 時間の経過に伴う状態変化の可視化
  • Reduxミドルウェアの動作をテストする
  • 状態論理におけるチーム協働の向上

主な機能

  • タイムトラベルデバッグ
  • リアルタイム状態の点検
  • アクションリプレイ機能
  • ライトモードおよびダークモードのサポート
  • シームレスな Redux 統合

適している対象

  • FlutterでReduxを使用する開発者
  • 状態が重いアプリケーションに取り組んでいるチーム
  • 状態の問題のデバッグに注力するフロントエンドエンジニア
  • 複雑なビジネスロジックを備えたFlutterアプリ
  • 拡張されたデバッグツールを求める人

注意事項

  • Reduxのセットアップが必要です
  • 本番ビルドには適していません
  • 開発環境に限定
  • アプリの起動時間を増加する可能性があります
  • 構造が整った状態モデルと併用するのが最適です

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_redux_dev_tools

Build Status codecov

A Widget you can use to show a Redux Time Travel UI. Simply put it in a part of your UI that makes sense (Such as a Dev Tools Drawer), pass it a DevToolsStore and you'll be good to go!

Note: This Widget does not work with a normal Redux Store. It is meant to work with the redux_dev_tools package, which provides a DevToolsStore. The DevToolsStore is a drop-in replacement for your Store during Development!

Demo

A simple Flutter app that allows you to Increment and Decrement a counter.

A screenshot of the Dev Tools in Action

Usage
  1. Create a main_dev.dart file
  2. In this file, create a DevToolsStore in place of a normal redux Store
  3. Create a ReduxDevTools widget, passing through the Store. You can place this Widget wherever makes sense in your app! One good suggestion: In a "Dev Tools Drawer." This is generally the endDrawer in your Scaffold, and can contain different types of tools for a Dev Build of your app.
Example

This example paints only a broad outline of how to use the ReduxDevTools. For a complete example, see the example folder.

int addReducer(int state, action) => state + 1;

// Create a DevToolsStore instead of a normal Store during Development
final store = DevToolsStore<int>(
  addReducer,
  initialState: 0,
);

// Finally, create your app with a Redux Dev Tools
main() { 
  runApp(MaterialApp(
    home: Scaffold(
      endDrawer: ReduxDevTools<int>(store),
    ),
  ));
}

Credits

All of this is inspired by the original Redux Devtools.

カテゴリー

依存関係

依存関係一覧 3 件

ソースリポジトリ

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