Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributestate_machine

Finite state machine library to define legal state transitions and listen to state changes.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth7382 (best)
Maintenance5079 (best)
Quality83100 (best)
Popularity73 (best)58
Community8080
Compatibility100100
UsageDownloads (30 days)23k (best)7.3k
Likes41 (best)31
Pub points120 / 160160 / 160 (best)
GitHub stars65 (best)64
MaintenanceLatest release3.0.3, 9 months ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors36 (best)11
Publisherworkiva.comdev.go.yandex
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseUNKNOWNMIT
Setup effortLowLow
JudgementStrengths
  • Prevents illegal state transitions by design.
  • Supports cancellation conditions and wildcards for transitions.
  • Exposes streams for state entrances and departures.
  • 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
  • Limited documentation on advanced architectural patterns.
  • Unclear active maintenance status with unknown license.
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
state_machine vs yx_state: which Flutter package should you use? | pubscout