搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目