piper_state 0.0.3 copy "piper_state: ^0.0.3" to clipboard
piper_state: ^0.0.3 copied to clipboard

Simple Flutter state management with lifecycle-aware ViewModels. Automatic cleanup, explicit dependencies, no boilerplate.

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.0.3 - 2025-12-09 #

Changed #

  • Updated SDK constraint to ^3.6.0
  • Updated meta dependency to ^1.11.0

0.0.2 - 2025-12-08 #

Changed #

  • Version bump for flutter_piper compatibility

0.0.1 - 2025-12-08 #

Added #

  • StateHolder<T> — synchronous state with change notification
  • AsyncStateHolder<T> — async state with loading/error/data handling
  • AsyncState<T> — sealed class for representing async operation states
  • ViewModel — lifecycle-aware base class with automatic cleanup
  • Task — cancellable async operations
  • TaskScope — manages multiple tasks with collective cancellation
  • Stream bindings: bind(), stateFrom(), bindAsync()
  • load() and launchWith() helpers for async operations
  • TestScope for testing ViewModels without Flutter
0
likes
160
points
107
downloads

Publisher

unverified uploader

Weekly Downloads

Simple Flutter state management with lifecycle-aware ViewModels. Automatic cleanup, explicit dependencies, no boilerplate.

Homepage
Repository (GitHub)
View/report issues

Topics

#state-management #viewmodel #architecture #dart #flutter

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on piper_state