FLUTTER ECOSYSTEM

replay_bloc

An extension to the bloc state management library which adds support for undo and redo.

Latest version
0.3.0
30-day downloads
20.9K
Likes
189
Pub points
160

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

ReplayBloc is an extension for the Bloc library that enhances state management by adding built-in support for undo and redo functionality. It allows developers to track and replay state changes, enabling users to revert or reapply actions within their applications. This is particularly useful in scenarios requiring precise control over user interactions, such as form editing, drawing apps, or complex workflows. Built on top of the existing Bloc architecture, it integrates seamlessly with Flutter's reactive programming model.

Use cases
  • Form editing with undo/redo
  • Drawing or design applications
  • Complex workflow management
  • Time-travel debugging
  • User action history tracking
Key features
  • Built-in undo and redo capabilities
  • Seamless integration with Bloc
  • Supports time-travel debugging
  • Immutable state tracking
  • Easy-to-use API for state reversal
Suitable for
  • Developers using Bloc for state management
  • Apps requiring reversible user actions
  • Teams implementing advanced state control
  • Debugging and testing state transitions
Considerations
  • Increased memory usage due to state history
  • Potential performance impact with large state changes
  • Requires careful handling of state serialization
  • Not ideal for high-frequency state updates
  • Limited to use cases where reversibility is essential
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add replay_bloc

Categories

Source repository

Related projects