Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributecontext_ref

Provide and retrieve values scoped to a BuildContext with automatic disposal.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth5882 (best)
Maintenance1879 (best)
Quality96100 (best)
Popularity5058 (best)
Community5880 (best)
Compatibility100100
UsageDownloads (30 days)9k (best)7.3k
Likes1331 (best)
Pub points150 / 160160 / 160 (best)
GitHub stars3864 (best)
MaintenanceLatest release3.2.3, a year ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors411 (best)
Publishersonerik.devdev.go.yandex
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies21 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Automatic disposal of bound objects tied to the widget lifecycle
  • Minimal boilerplate compared to traditional InheritedWidget setup
  • Supports lazy initialization and pre-existing value binding
  • 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 a root widget wrapper (`ContextRef.root`)
  • Tightly coupled to the widget tree via BuildContext
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
context_ref vs yx_state: which Flutter package should you use? | pubscout