Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeshared_value

Manage global state and persist variables using InheritedModel.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth3982 (best)
Maintenance079 (best)
Quality93100 (best)
Popularity2258 (best)
Community680 (best)
Compatibility100100
UsageDownloads (30 days)5517.3k (best)
Likes1731 (best)
Pub points145 / 160160 / 160 (best)
GitHub stars464 (best)
MaintenanceLatest release3.0.0, 4 years ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors111 (best)
PublisherUnverifieddev.go.yandex
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies11
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Works anywhere in Dart code even without a BuildContext
  • Only rebuilds widgets that subscribe to updates using .of(context)
  • Built-in support for persisting values using shared_preferences
  • 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 global variables which can make testing harder
  • Very limited documentation and changelog history
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
Warnings
  • Unverified publisher
None
shared_value vs yx_state: which Flutter package should you use? | pubscout