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

套件詳情v0.7.0

redux_dev_tools

Dart Redux 的時間旅行開發工具

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
2.6萬
喜歡數
9
Pub 分數
125

安裝套件

flutter pub add redux_dev_tools

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

Redux DevTools 是 Dart Redux 的除錯擴展,支援時間旅行除錯,讓開發者能夠檢視並重播跨應用會話的狀態變更。它能無縫整合至多個平台上的 Redux 應用,提供視覺化介面來追蹤動作、狀態轉換與效能指標。此工具支援熱重新載入與即時狀態視覺化,讓識別錯誤與優化狀態管理工作流程變得更容易。專為注重複雜應用中穩健狀態處理的開發者所設計。

適用情境

  • 在 Redux 應用中調試狀態變化
  • 重播應用狀態以重現錯誤
  • 監控操作分發和狀態更新
  • 優化狀態轉換的效能
  • 使用時間旅行測試複雜的狀態邏輯

主要特色

  • 時間旅行除錯
  • 即時狀態可視化
  • 動作重播功能
  • 跨平台支援(Android、iOS、Web、macOS、Windows、Linux)
  • 與 Dart Redux 集成

適合對象

  • 使用 Redux 進行狀態管理的 Dart 開發人員
  • 建構複雜狀態驅動應用的團隊
  • 需要高級調試工具的開發人員
  • 前端工程師正在開發多平台應用
  • 任何尋求對國家演變深入了解的人

使用建議

  • 需要與 Redux 框架整合
  • 可能會稍微增加應用程式套件大小
  • 在未停用的情況下不適用於生產環境
  • 僅限 Dart Redux 實現
  • 需要正確設定才能實現完整功能

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

redux_dev_tools

Build Status codecov

A Redux Store with a Delorean.

This library allows you to create a DevToolsStore during dev mode in place of a normal Redux Store. This DevToolsStore will act exactly like a normal Store at first, with one catch: It will allow you to travel back and forth throughout the State of your application!

You can write your own UI to travel in time, or use one of the existing options for the platform you're working with:

Demo

Flutter

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

A screenshot of the Dev Tools in Action

Usage

// Start by creating a simple Reducer, or a complex one. Dealer's choice. :)
int addOneReducer(int state, action) => state + 1;

// For production mode, this is how you should create your Store.
final store = Store(addReducer, initialState: 0);

// In Dev Mode, however, if you want to hook up to Time-Traveling 
// Dev Tools, create a `DevToolsStore` instead!
//
// It will act exactly like your normal Store, but give you super powers
// to travel back and forth in time throughout your app States!
// 
// Remember: By itself this will beef up your Store, but will not provide
// a UI to Time Travel. See the libraries listed above to learn how to
// connect your Redux store to a UI! 
final store = DevToolsStore(addReducer, initialState: 0);

Credits

All of this code was directly inspired by the original Redux Devtools.

所屬分類

依賴

依賴清單 1 項

原始碼儲存庫

使用此套件的專案