state_forge 0.1.0
state_forge: ^0.1.0 copied to clipboard
Structured Flutter state management with zero boilerplate and zero code generation. One store file per feature. Built on Dart 3 sealed classes, a pure Dart core, and Flutter's InheritedModel for scope [...]
Changelog #
All notable changes to this project will be documented in this file.
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.