void_signals_flutter 1.0.0
void_signals_flutter: ^1.0.0 copied to clipboard
Flutter bindings for void_signals - high-performance reactive state management
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.0.0 - 2024-11-28 #
Added #
- Initial stable release of void_signals_flutter
- Core widgets:
Watch- Reactive widget that rebuilds on signal changesObs- Shorthand for Watch widgetSignalBuilder- Builder pattern for signal reactivitySignalSelector- Selective rebuilds for performance optimizationSignalScope- Route-level state override and dependency injection
- Consumer pattern (Riverpod-style API):
Consumer/ConsumerWidget/ConsumerStatefulWidgetSignalRefwithwatch(),read(),listen()methods
- Time-based utilities:
debounced()- Debounce signal updatesthrottled()- Throttle signal updates
- Form validation:
SignalField- Form field with validationSignalFieldBuilder- Builder for form fields- Validators:
requiredValidator,emailValidator, etc.
- Convenience extensions:
- Integer:
increment(),decrement() - Boolean:
toggle() - List:
add(),remove(),clear() - Map:
set(),remove() - Nullable:
clear(),orDefault() - Transform:
modify()
- Integer:
- Frame synchronization:
batch()- Synchronous batchingbatchLater()- Deferred flush to microtaskqueueUpdate()- Fully deferred updatesFrameBatchScope- Manual control over update queue
- DevTools integration:
VoidSignalsDebugService- Debug service for DevTools.tracked()extension for signal debugging
Performance #
- Automatic frame synchronization with Flutter lifecycle
- Multiple rapid updates batched automatically
- Updates during build phase deferred to next frame