Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutterlifecyclehooks

Easily add application lifecycle state hooks using mixins or widgets.

pub.devRemove
yx_state

A state management library for Dart and Flutter applications.

pub.devRemove
ScoresHealth4982 (best)
Maintenance279 (best)
Quality96100 (best)
Popularity3958 (best)
Community4180 (best)
Compatibility100100
UsageDownloads (30 days)7797.3k (best)
Likes52 (best)31
Pub points150 / 160160 / 160 (best)
GitHub stars1564 (best)
MaintenanceLatest release5.0.0, 2 years ago1.0.2, 6 weeks ago (best)
Major versions in 12 months00
Contributors111 (best)
Publisherptsakoulis.comdev.go.yandex
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAll (pure Dart)
WASM-readyYesYes
KindFlutter widgetsPure Dart
Code generationNoNo
Direct dependencies0 (best)1
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simplifies working with AppLifecycleListener via mixins and widgets.
  • Provides an onContextReady method as a replacement for afterFirstRender.
  • Cross-platform support including Android, iOS, Web, Windows, macOS, and Linux.
  • 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
  • Limited to handling lifecycle hooks and context readiness.
  • Web support for certain hooks was only added recently.
  • Limited community and ecosystem compared to older, dominant alternatives like Bloc or Riverpod.
  • Relies on manual state class definitions and equality overrides.
WarningsNoneNone
flutterlifecyclehooks vs yx_state: which Flutter package should you use? | pubscout