finite_state_widget 0.0.2 copy "finite_state_widget: ^0.0.2" to clipboard
finite_state_widget: ^0.0.2 copied to clipboard

Declarative FSM-driven widgets with optional controllers (MVC/MVVM style) and an easy map-based UI per-state.

Changelog #

All notable changes to this project will be documented in this file.

The format loosely follows Keep a Changelog and the project adheres to Semantic Versioning.

0.0.2 - 2026-03-04 #

Changed #

  • BREAKING: Renamed FiniteState.state getter to currentState for consistency with FiniteStateController.currentState and to avoid ambiguity with Flutter's State<T> class.

Added #

  • buildCurrentState() protected method on FiniteState — returns the widget for the current state (with fallback). Useful for testing.
  • switcherDuration overridable getter on FiniteState — customize AnimatedSwitcher duration (default: 180 ms). Use Duration.zero to disable animation.
  • README: documented FiniteStateWidget as a third primitive alongside StatelessWidget and StatefulWidget.
  • Widget tests covering: initial render, dispatch transitions, fallback for unmapped state, lifecycle hooks, invalid transitions, custom switcherDuration.

0.0.1 - 2025-10-26 #

Added #

  • Initial release.
1
likes
160
points
140
downloads

Documentation

API reference

Publisher

verified publisherccisne.dev

Weekly Downloads

Declarative FSM-driven widgets with optional controllers (MVC/MVVM style) and an easy map-based UI per-state.

Repository (GitHub)
View/report issues

Topics

#widget #state-management #macss

License

MIT (license)

Dependencies

flutter

More

Packages that depend on finite_state_widget