Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributeflutter_hooks

A Flutter implementation of React hooks for managing widget life-cycle and code reuse.

pub.devRemove
flutterlifecyclehooks

Easily add application lifecycle state hooks using mixins or widgets.

pub.devRemove
ScoresHealth94 (best)49
Maintenance93 (best)2
Quality100 (best)96
Popularity94 (best)39
Community80 (best)41
Compatibility100100
UsageDownloads (30 days)393k (best)779
Likes2.4k (best)52
Pub points160 / 160 (best)150 / 160
GitHub stars3.3k (best)15
MaintenanceLatest release0.21.4, 2 weeks ago (best)5.0.0, 2 years ago
Major versions in 12 months00
Contributors70 (best)1
Publisherdash-overflow.netptsakoulis.com
FitPlatformsAndroid, iOS, Web, Windows, macOS, LinuxAndroid, iOS, Web, Windows, macOS, Linux
WASM-readyYesYes
KindFlutter widgetsFlutter widgets
Code generationNoNo
Direct dependencies00
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Increases code-sharing between widgets by removing duplicate lifecycle boilerplate.
  • Extracted logic can be easily packaged and published independently.
  • 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.
Weaknesses
  • Requires strict adherence to rules (calling hooks unconditionally and prefixing with 'use').
  • Hot-reload behavior can cause hard-resets of hooks if hooks are removed or reordered incorrectly.
  • Limited to handling lifecycle hooks and context readiness.
  • Web support for certain hooks was only added recently.
WarningsNoneNone
flutter_hooks vs flutterlifecyclehooks: which Flutter package should you use? | pubscout