flowdux_flutter 0.1.0 copy "flowdux_flutter: ^0.1.0" to clipboard
flowdux_flutter: ^0.1.0 copied to clipboard

Flutter bindings for FlowDux state management library. Provides StoreProvider, StoreBuilder, and StoreConsumer widgets.

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.1.0 - 2024-01-21 #

Added #

  • StoreProvider - InheritedWidget for providing store to widget tree

    • StoreProvider.of<S, A>() - Get store from context (throws if not found)
    • StoreProvider.maybeOf<S, A>() - Get store from context (returns null if not found)
    • Context extensions: context.store<S, A>() and context.dispatch<S, A>(action)
  • StoreBuilder - Widget that rebuilds when store state changes

    • Optional store parameter for direct store injection
    • Optional selector for optimized rebuilds
  • StoreSelector - Optimized widget that only rebuilds when selected value changes

    • Type-safe selector function
    • Efficient comparison to prevent unnecessary rebuilds
  • StoreConsumer - Combined builder and listener widget

    • Access to both store and state in builder
    • Optional listener for side effects
  • StoreListener - Widget for side effects without rebuilding

    • listenWhen predicate for conditional listening
    • Callbacks are scheduled after frame to avoid build-time navigation issues

Notes #

  • Requires Flutter >= 3.10.0
  • Requires Dart SDK >= 3.0.0
  • Depends on flowdux ^0.1.0
0
likes
0
points
213
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter bindings for FlowDux state management library. Provides StoreProvider, StoreBuilder, and StoreConsumer widgets.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

flowdux, flutter

More

Packages that depend on flowdux_flutter