swift_flutter 1.0.1
swift_flutter: ^1.0.1 copied to clipboard
A reactive state management library for Flutter with automatic dependency tracking, computed values, async state, form validation, and more.
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.1 2025-01-XX #
Changed #
- Renamed
rx()function toswift()for better API consistency - Improved type inference -
swift()now supports both automatic and explicit typing - Updated all examples to use
swift()syntax
Added #
swift()function with optional type inferenceswift(0)automatically createsRx<int>swift<int>(0)explicitly createsRx<int>(recommended for models)- Works with all types: int, String, bool, double, List, Map, custom classes, etc.
1.0.0 2025-01-XX #
Added #
- Automatic Type Inference with
swift()- Useswift(value)for automatic inference orswift<Type>(value)for explicit typingswift(0)automatically createsRx<int>swift<int>(0)explicitly createsRx<int>(recommended for models)swift('hello')automatically createsRx<String>swift<User>(user)explicitly createsRx<User>(for custom models)- Works with all types: int, String, bool, double, List, Map, custom classes, etc.
- Reactive State (Rx) - Automatic dependency tracking with
Rx<T> - Mark Widget - Auto-rebuild widget that tracks dependencies automatically
- Computed Values - Derived state that automatically updates when dependencies change
- RxFuture - Async state management with loading/error/success states
- Form Validation - Field validation with built-in validators (
RxField) - Persistence - Automatic save/load of reactive values (
RxPersisted) - Middleware/Interceptors - Action interception and logging system
- Batch Transactions - Prevent unnecessary rebuilds with transaction batching
- Debug Logger - Configurable logging with history and levels
- Animation Tween - Reactive animation values (
RxTween) - Lifecycle Controller - Widget lifecycle state management
- Global Store/DI - Dependency injection and global state management
- Comprehensive test suite with 58 passing tests
- Example app demonstrating all features
Documentation #
- Complete README with installation and usage examples
- Architecture review document
- Performance comparison document
- Inline code documentation