Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributefsm2

A Dart library for building UML‑style finite state machines with nested states and guard conditions.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth7282 (best)
Maintenance87 (best)78
Quality91100 (best)
Popularity3158 (best)
Community5880 (best)
Compatibility85100 (best)
UsageDownloads (30 days)8717.6k (best)
Likes1831 (best)
Pub points140 / 160160 / 160 (best)
GitHub stars5364 (best)
MaintenanceLatest release3.4.1, 4 weeks ago (best)1.0.2, 6 weeks ago
Major versions in 12 months00
Contributors411 (best)
Publisheronepub.devdev.go.yandex
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies101 (best)
LicenseBSD-2-CLAUSEMIT
Setup effortLowLow
JudgementStrengths
  • Supports nested and concurrent states
  • Guard conditions and side‑effects are built‑in
  • No code generation required
  • 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 to state‑machine logic, no UI components
  • Documentation primarily on external site
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
fsm2 vs yx_state: which Flutter package should you use? | pubscout