state_forge 0.1.2
state_forge: ^0.1.2 copied to clipboard
Structured Flutter state management with typed stores, scoped rebuilds, effects, persistence, and test helpers.
Changelog #
All notable changes to this project will be documented in this file.
0.1.2 - 2026-06-07 #
Fixed #
- Corrected GitHub links in README badges and long-form package notes.
- Aligned package metadata examples with the published repository URL.
0.1.1 - 2026-06-07 #
Fixed #
- Updated package metadata with reachable repository, issue tracker, and documentation links for pub.dev scoring.
- Shortened the package description for pub.dev display guidelines.
0.1.0 - 2026-04-20 #
Added #
- Core Engine: High-performance state propagation using
InheritedModelandSelectorAspect. - Zero Codegen: Entirely removes the need for
build_runnerorfreezed. - AsyncState: Built-in universal sealed class for
Idle,Loading,Success, andFailurestates. - Pattern Matching: Functional API for
AsyncStatewith.when(),.maybeWhen(),.map(), and.maybeMap(). - Side Effects: First-class
effect()system withForgeEffectListenermixin forStatefulWidget. - Power Mixins:
UndoableStore(History) andPersistableStore(Persistence withhydrate()). - Dev-Friendly API: Shorthand
context.watch(),context.read(), andcontext.select()extensions. - Lazy Loading:
LazyStoreProviderfor deferred store instantiation. - Optimistic Updates:
optimistic()helper for "success-first" UI transitions. - Global Hooks:
StateForge.onErrorandStateForge.debugMode. - DevTools Integration: Initial hooks for Flutter DevTools extension.
- Example App: A full-featured Movie E-commerce app using TVMaze API.
- Persistence Ergonomics:
PersistableStore.persistOnChange()for opt-in automatic persistence with debounce support. - Hydration Lifecycle:
PersistableStore.hydrateOnCreate()to load persisted state before attaching automatic persistence. - SharedPreferences Adapter: First-party
state_forge_shared_preferencespackage for lightweight durable JSON state.