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

GitHub 儲存庫brianegan/flutter_redux_dev_tools

flutter_redux_dev_tools

適用於 Flutter 的時間旅行 Redux 調試工具

flutter_redux_dev_tools 專案封面
星標
40
分支
9
最近推送(UTC)
2022年4月28日
專案狀態
未封存

原始 README

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

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.

Brian Egan GitHub avatar
GitHub 作者

Brian Egan ↗

Montana boy living in the UK.

Lake District, UK官方網站 ↗
語言MakefileDartCMakeC++HTMLCSwiftKotlinObjective-C

分類

此儲存庫發佈的套件

使用的依賴

依賴清單 6 項

  • flutter{"sdk":"flutter"}
  • flutter_redux>=0.8.2 <0.11.0
  • redux>=5.0.0 <6.0.0
  • redux_dev_tools>=0.7.0 <0.8.0
  • flutter_test開發依賴{"sdk":"flutter"}
  • pedantic開發依賴1.11.0

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗