Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributehierarchical_state_machine

Performant hierarchical state machine framework inspired by UML.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth6282 (best)
Maintenance4678 (best)
Quality97100 (best)
Popularity3658 (best)
Community4680 (best)
Compatibility100100
UsageDownloads (30 days)1.3k7.6k (best)
Likes2131 (best)
Pub points160 / 160160 / 160
GitHub stars664 (best)
MaintenanceLatest release2.4.0, 5 months ago1.0.2, 6 weeks ago (best)
Major versions in 12 months10 (best)
Contributors211 (best)
Publishermcdole.orgdev.go.yandex
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies31 (best)
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Prevents state explosion with hierarchical parent/child states
  • Immutable blueprints validated during compilation
  • Supports orthogonal regions, history semantics, and serialization
  • Built-in error handling and error reporting mechanisms.
  • State observers allow easy monitoring for debugging and analytics.
  • Global overrides for customizing state emission behavior.
Weaknesses
  • Steeper learning curve compared to standard state management packages
  • Requires careful definition of states, events, and transitions
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
hierarchical_state_machine vs yx_state: which Flutter package should you use? | pubscout