atomic_flutter 0.2.4
atomic_flutter: ^0.2.4 copied to clipboard
A lightweight, reactive state management solution for Flutter applications with async state support and domain-specific atoms.
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.
0.2.3 - 2025-08-11 #
Fixed #
- Clean up whitespace in async widget and test files
- Update async handling and improve code structure
0.2.0 - 2025-08-11 #
Added #
- AsyncAtom: New async state management with
AsyncValue<T>
wrapper - AsyncState enum:
idle
,loading
,success
, anderror
states - AsyncAtomBuilder: Widget for building UI based on async atom states
- AsyncBuilder: Simplified async widget with retry and refresh support
- Async Extensions:
debounceAsync()
- Debounced async operationsmapAsync()
- Transform async valuesexecuteIfNotLoading()
- Conditional executionexecuteWithRetry()
- Retry failed operations with exponential backoffchain()
- Chain async operationscached()
- Create cached async operations with TTLtoAsync()
- Convert regular atoms to async atomsasyncMap()
- Create async atoms from regular atom changes
- Global Async Functions:
computedAsync()
- Create debounced computed async atomscombineAsync()
- Combine multiple async atoms
- Memory Management: Enhanced automatic cleanup for async operations
- Debug Support: Extended debug utilities for async atoms
- Comprehensive Test Coverage: Added extensive tests for all new features
Changed #
- Enhanced core
Atom
class with improved async support - Updated extension methods with better async integration
- Improved documentation with async examples
Fixed #
- Async atom test stability improvements
- Memory leak prevention in async operations
0.1.1 - 2025-03-17 #
0.1.0 - 2025-03-17 #
Added #
- Initial beta release
- Core
Atom
class for state management computed
function for derived state- UI widgets:
AtomBuilder
,MultiAtomBuilder
, andAtomSelector
- Extension methods:
effect
,asStream
,select
,debounce
, andthrottle
- Automatic memory management with reference counting
- Debug utilities for tracking atom state and changes
- Comprehensive documentation and examples