flutter_composable_architecture 2.0.1
flutter_composable_architecture: ^2.0.1 copied to clipboard
A lightweight, composable Flutter state management framework inspired by Redux and Bloc patterns, providing a more modular and testable architectural solution.
Changelog #
All notable changes to this project will be documented in this file.
2.0.1 #
- Start the first idle action immediately while preserving FIFO ordering for subsequent actions.
- Fix Flutter interactions that await the first
send()before navigating or updating the UI.
2.0.0 #
- Serialize public action dispatches through an internal FIFO queue.
- Reject actions and manual dispatches after
Store.dispose(). - Publish reducer and effect failures through
errorStreambefore rethrowing. - Fix store initialization so
beforeCopyStateruns after the initial snapshot. - Keep the 1.x reducer, middleware, effect, and state-stream APIs compatible.
1.0.0 #
Added #
- Initial release of Flutter Composable Architecture
- Core Store implementation for state management
- Logic component for handling business logic
- Effect system for managing side effects and asynchronous operations
- Middleware support for cross-cutting concerns
- State diffing capabilities for efficient updates
- Comprehensive test suite demonstrating framework usage
- Detailed documentation and examples
Features #
- Composable architecture allowing modular business logic
- Inspired by Redux and Bloc patterns but more lightweight
- Support for asynchronous operations with Effect handlers
- Middleware system for logging, analytics, and other cross-cutting concerns
- Stream-based state change notifications
- Easy testing with pure functional design
- Type-safe implementation using Dart generics
Technical Details #
- State management with precise change tracking
- Action dispatching with middleware processing
- Memory efficient with proper resource disposal
- Compatible with Flutter's reactive programming model
- Follows Dart and Flutter best practices