flutter_piper 0.0.2
flutter_piper: ^0.0.2 copied to clipboard
Lifecycle-aware state management for Flutter. ViewModels, async state, stream bindings, and task cancellation.
Changelog #
0.0.2 #
Scoped<T>— new widget for single ViewModel scoping with builder patternScoped.withContext— variant with BuildContext access for dependency injectionViewModelScope.withContext— added BuildContext variant for dependency injection- Named scopes via
nameparameter onViewModelScopeandScoped context.scoped<T>()extension for accessing scoped ViewModels
0.0.1 #
- Initial release
ViewModelScope— provides ViewModels to widget treeStateBuilder— rebuilds on state changesStateListener— side effects without rebuildingStateEffect— post-frame side effects with conditions- Extension methods:
.build(),.listen()on StateHolder/AsyncStateHolder context.vm<T>()andcontext.maybeVm<T>()extensions