rivertion 3.0.0
rivertion: ^3.0.0 copied to clipboard
A Flutter state management library that bridges the gap between traditional state holders (like `ValueNotifier`, `ChangeNotifier`, and `Bloc`) and a modern, reactive consumption model inspired by Riverpod.
3.0.0 #
BREAKING: Complete rewrite of the library.
- Introduced a new core concept:
Source, a unified reactive stream for state consumption. - Replaced previous state management approach with
SourceWidgetandSourceBuilderfor a consistent, Riverpod-inspired API.
Added
- From
ListenabletoSource: Convert anyListenable(e.g.,ValueNotifier,ChangeNotifier) into a reactiveSourceusing.sourceand.sourceBy()extensions. - Code Generation: Added a command-line tool to generate boilerplate for interoperability with popular packages.
- Bloc Support: Added generated code to convert
BlocandCubitinstances into aSourcefor consumption inSourceBuilder. - Riverpod Interop: Added generated
SourceConsumerWidgetto use Riverpod providers inside aSourceWidget. - Reactive Forms Interop: Added generated extensions to bind
Sources toreactive_formscontrols. - Standalone State: Included
SourceControllerfor simple, self-contained state management.