搜尋套件、儲存庫與 APP 分類

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 集成

適合對象

  • 使用 Redux 的 Flutter 開發人員
  • 正在開發狀態密集型應用程式的團隊
  • 專注於除錯狀態問題的前端工程師
  • 具有複雜業務邏輯的 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 項

原始碼儲存庫

使用此套件的專案