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
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth91 (best)82
Maintenance7378 (best)
Quality100100
Popularity97 (best)58
Community100 (best)80
Compatibility100100
UsageDownloads (30 days)2.5M (best)7.6k
Likes3.2k (best)31
Pub points160 / 160160 / 160
GitHub stars12k (best)64
MaintenanceLatest release9.2.1, 6 months ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors100+ (best)11
Publisherbloclibrary.devdev.go.yandex
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyYesYes
KindPure DartPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • High testability and clear separation of concerns
  • Large community and extensive documentation
  • Supports both Bloc and Cubit for flexibility
  • 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
  • Requires understanding of streams and reactive patterns
  • Some boilerplate for setting up Blocs/Cubits
  • Learning curve for new developers
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
bloc vs yx_state: which Flutter package should you use? | pubscout