simple_app_state 0.0.18
simple_app_state: ^0.0.18 copied to clipboard
A package for state management and state persistence in Flutter apps.
0.0.18 #
- Readme has been updated.
- No runtime behavior changes.
0.0.17 #
- The sample code has been updated to be more practical.
- Readme has been updated.
- No runtime behavior changes.
0.0.16 #
- Enforced the
SlotStatecontract at the type level forSlotStatefulWidget. Widgets extendingSlotStatefulWidgetmust now return aSlotStatefromcreateState(), preventing accidental use of incompatibleStateclasses. - Updated
StateSlotBuilderto comply with the newSlotStatefulWidgettype contract. - No runtime behavior changes; this release only strengthens compile-time safety and API correctness.
0.0.15 #
- Separated UI listener notifications from state commit notifications. State listeners (used for Undo/Redo, persistence, etc.) are now guaranteed to be called exactly once per logical state change.
- UI-less state changes no longer trigger unnecessary UI notification flushes.
- Clarified the behavior and deep-copy requirements of
replaceDataFromin the documentation. - Added
RefDebugListenertoRefAppState, allowing developers to observe reference value changes directly, without the old/new semantics used byDebugListener.
0.0.14 #
RefSlotis now exported as a public API type (simple_app_state.RefSlot), so it appears in dartdoc and can be referenced by users.- No runtime behavior changes.
0.0.12 #
- Clarified the memory semantics of
StateSlotandRefSlotin documentation. StateSlotis now explicitly documented as returning deep-copied values.RefSlotis now explicitly documented as returning reference values.RefAppState.slot()now returnsRefSlot<T>instead ofStateSlot<T>.- Clarified that
RefAppState.replaceDataFromandcloneperform deep copies for snapshot and undo purposes. - Minor documentation and wording fixes.
0.0.11 #
- Fixed the description of some methods in
StateSlot, as the addition ofRefAppStatecaused some inconsistencies. - The readme has been improved.
0.0.10 #
SimpleAppState'sreplaceDataFromnow has anotifyListenersflag if you want to delay listener notification.- Added
RefAppStateclass. This class can handle reference values. - Refactoring the project structure.
- Some documentation improvements.
0.0.9 #
- The
onStateChangedmethod ofSlotStatefulWidgetis now exposed and can be overridden. SimpleAppState'sloadFromDictnow has anotifyListenersflag if you want to delay listener notification.
0.0.8 #
- The
setmethod has been changed to deep copy the value internally, making the app state less prone to corruption. - Improved code documentation, example and readme.
0.0.7 #
- Fixed document of loadFromDict in
SimpleAppState.
0.0.6 #
- Improved consistency of user-defined generic types in
SimpleAppState. - Made the
initialparameter ofSimpleAppState.slotmandatory. - Removed method chaining from
setandupdate, as it is no longer necessary. debugListenerno longer reports the initial value.- Improved identity and equality checks for
StateSlot. - Updated documentation to reflect the new type-safety and initialization rules.
0.0.5 #
- Improved code documentation.
0.0.4 #
- The README.md has been updated.
0.0.3 #
- Improved examples and code documentation.
0.0.2 #
- Fixed an issue where a type error would occur at runtime when using collections of certain types.
- Type checking has been improved.
0.0.1 #
- Initial release.