# rrousselGit/flutter_hooks

React hooks for Flutter. Hooks are a new kind of object that manages a Widget life-cycles. They are used to increase code sharing between widgets and as a complete replacement for StatefulWidget.

Repository: https://github.com/rrousselGit/flutter_hooks
Canonical: https://ross.abutalabs.com/products/flutter_hooks
Language: Dart
License: MIT
License Family: permissive
Topics: dart, flutter, hook, widget, code-reuse, hacktoberfest
Last push: 2026-05-27T18:30:23+00:00

## Health v2 (maintenance only)
Score: 70/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 35, longevity 100
- inputs: {"age_days": 2833, "days_push": 98, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3330, forks 195 (observed 2026-08-28T04:07:56.559110+00:00)

## What it is
A Flutter implementation of React hooks, providing hook objects that manage widget life-cycles. It enables code sharing between widgets and serves as a replacement for StatefulWidget boilerplate.

## Use cases
- share stateful logic between flutter widgets
- replace statefulwidget with hooks
- use animationcontroller without dispose boilerplate
- reduce initstate and dispose duplication in flutter
- write react-style hooks in dart

## When to choose
- you want reusable stateful logic across widgets
- you find StatefulWidget lifecycle boilerplate verbose
- you're familiar with React hooks patterns

## When to avoid
- your team prefers standard Flutter idioms
- you rely heavily on State mixins or InheritedWidget patterns
- you want a full state management solution like Riverpod or Bloc

## Facets
- artifact type: library
- maturity: active
- function: state-management, ui-components
- domain: mobile-development, frontend, cross-platform
- platform: cross-platform
- tags: flutter, react-hooks, widgets, code-reuse, mobile

## Member repositories
- rrousselGit/flutter_hooks (main) score 70

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.559110+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:43.637403+00:00, confidence not recorded.
  - readme: https://github.com/rrousselGit/flutter_hooks (fetched 2026-08-28T04:07:56.559110+00:00, sha ccb4c4d4d0e1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
