flutter_piper 0.0.2 copy "flutter_piper: ^0.0.2" to clipboard
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 pattern
  • Scoped.withContext — variant with BuildContext access for dependency injection
  • ViewModelScope.withContext — added BuildContext variant for dependency injection
  • Named scopes via name parameter on ViewModelScope and Scoped
  • context.scoped<T>() extension for accessing scoped ViewModels

0.0.1 #

  • Initial release
  • ViewModelScope — provides ViewModels to widget tree
  • StateBuilder — rebuilds on state changes
  • StateListener — side effects without rebuilding
  • StateEffect — post-frame side effects with conditions
  • Extension methods: .build(), .listen() on StateHolder/AsyncStateHolder
  • context.vm<T>() and context.maybeVm<T>() extensions
1
likes
160
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Lifecycle-aware state management for Flutter. ViewModels, async state, stream bindings, and task cancellation.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, piper_state

More

Packages that depend on flutter_piper