Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebloc_presentation

Dispatch single-time side effects from Bloc or Cubit without polluting state.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth6982 (best)
Maintenance2678 (best)
Quality91100 (best)
Popularity81 (best)58
Community8080
Compatibility100100
UsageDownloads (30 days)25k (best)7.6k
Likes93 (best)31
Pub points140 / 160160 / 160 (best)
GitHub stars3564 (best)
MaintenanceLatest release1.1.2+3, 8 months ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors12 (best)11
Publisherleancode.codev.go.yandex
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseAPACHE-2.0MIT
Setup effortLowLow
JudgementStrengths
  • Keeps UI side effects separate from the core bloc state
  • Includes a listener widget and works well with flutter_hooks
  • Supports nullable types for optional blocs in the widget tree
  • 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
  • Relies on stream subscriptions which require careful lifecycle handling if not using provided widgets
  • Requires using a specific mixin on your Blocs/Cubits
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
bloc_presentation vs yx_state: which Flutter package should you use? | pubscout