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
statemachine

A typed state machine library for Dart and Flutter allowing explicit state definitions and transitions.

pub.devRemove
ScoresHealth7373
Maintenance5055 (best)
Quality83100 (best)
Popularity73 (best)70
Community80 (best)52
Compatibility100100
UsageDownloads (30 days)23k (best)15k
Likes4149 (best)
Pub points120 / 160160 / 160 (best)
GitHub stars6589 (best)
MaintenanceLatest release3.0.3, 9 months ago (best)3.4.0, a year ago
Major versions in 12 months00
Contributors36 (best)3
Publisherworkiva.comlukas-renggli.ch
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.
  • Typed states reduce runtime errors
  • Supports multiple transition sources (streams, futures, timeouts)
  • Nested machines enable hierarchical state modeling
Weaknesses
  • Limited documentation on advanced architectural patterns.
  • Unclear active maintenance status with unknown license.
  • No built‑in UI binding; you must wire state changes manually
  • Limited ecosystem compared to larger state‑management packages
WarningsNoneNone
state_machine vs statemachine: which Flutter package should you use? | pubscout