Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc

A Dart library for implementing the BLoC pattern with Cubits and Blocs.

pub.devRemove
dart_fsm

A package for implementing finite state machines in Dart with a DSL and side effect handling.

pub.devRemove
ScoresHealth91 (best)65
Maintenance73 (best)54
Quality100100
Popularity97 (best)45
Community100 (best)34
Compatibility100100
UsageDownloads (30 days)2.5M (best)8.1k
Likes3.2k (best)8
Pub points160 / 160160 / 160
GitHub stars12k (best)23
MaintenanceLatest release9.2.1, 6 months ago1.3.1, 4 months ago (best)
Major versions in 12 months00
Contributors100+ (best)6
Publisherbloclibrary.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies1 (best)3
LicenseMITBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • High testability and clear separation of concerns
  • Large community and extensive documentation
  • Supports both Bloc and Cubit for flexibility
  • Clear DSL for defining states and transition graphs.
  • Built-in handling for side effects and stream subscriptions.
  • Exhaustive test runner DSL for Given-When-Then state transition testing.
Weaknesses
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Requires manual setup of states, actions, and transition graphs compared to simpler state containers.
  • Limited to finite state machine patterns.
WarningsNoneNone
bloc vs dart_fsm: which Flutter package should you use? | pubscout