Skip to content
CAI
Software that uses CAICheck a score

rrousselGit/flutter_hooks

65.4

Adequate · 12 November 2026

3.7k

lines of production code

Dart

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Features

New controller hooks, debouncing, and stream/listenable utilities

This release adds several new hooks to manage Flutter controllers automatically, including useCarouselController, useCupertinoTabController, useDraggableScrollableController, useExpansibleController (replacing the deprecated useExpansionTileController), useFixedExtentScrollController, useOverlayPortalController, useSearchController, useSnapshotController, useTreeSliverController, and useWidgetStatesController. It also introduces useDebounced for delaying value updates, useOnListenableChange for side-effect listeners, and useOnStreamChange for subscribing to streams. Existing hooks have been enhanced: useFocusNode and useFocusScopeNode now support descendantsAreTraversable and have removed the deprecated onKey parameter; useListenableSelector now accepts nullable listenables; useTabController supports animationDuration; useScrollController and usePageController support onAttach/onDetach callbacks; and useSingleTickerProvider now respects TickerMode. Additionally, useCallback's keys parameter is now optional, and the framework's key comparison logic has been updated to handle NaN and signed zero values correctly. Also in this area: 5 commits (1 fix) modifying packages/flutter\_hooks; Add useFocusScopeNode hook and Korean documentation; Fixes type safety and disposal logic in Flutter Hooks; New hooks for listenable selection, platform brightness, and keep-alive state; Update for Flutter 3.0 compatibility; and 3 more.

_packages/flutter\hooks/lib · low confidence · unverified

Behavioural changes

14 commits (2 fixes) modifying example/lib

A change to existing behaviour in example/lib — 14 commits (2 fixs), 1 file: “added basic star wars example based on provider and built\_value”; “initial commit”; “closes \#15”; and 11 more (refs \#15, \#10, \#26, \#14, \#18, …).

example/lib · medium confidence · unverified

2 commits (0 fixes) modifying example/android, example/ios

A change to existing behaviour in example/android, example/ios — 2 commits, 5 files: “initial commit”; “.packages”.

example/android, example/ios · medium confidence · unverified

2 commits (0 fixes) modifying lib

A change to existing behaviour in lib — 2 commits, 1 file: “initial commit”; “Prod ready (\#2)” (refs \#2).

lib · medium confidence · unverified

3 commits (0 fixes) modifying example

A change to existing behaviour in example — 3 commits, 1 file: “initial commit”; “.packages”; “ignore”.

example · medium confidence · unverified

5 commits (0 fixes) modifying packages/cupertino\_hooks, packages/material\_hooks

A change to existing behaviour in packages/cupertino\_hooks, packages/material\_hooks — 5 commits, 20 files: “List hooks in a table in material\_hooks and cupertino\_hooks READMEs”; “Move Material/Cupertino hooks to material\_hooks and cupertino\_hooks”; “The following packages have been updated: flutter\_hooks : 0.21.3+1 -\> 0.21.4 material\_hooks : 0.1.0 -\> 0.1.0 cupertino\_hooks : 0.1.0 -\> 0.1.0”; and 2 more.

_packages/cupertino\_hooks, packages/material\hooks · medium confidence · unverified

5 commits (1 fix) modifying packages/flutter\_hooks

A change to existing behaviour in packages/flutter\_hooks — 5 commits (1 fix), 35 files: “Fix changelog format”; “Move Material/Cupertino hooks to material\_hooks and cupertino\_hooks”; “The following packages have been updated: flutter\_hooks : 0.21.3+1 -\> 0.21.4 material\_hooks : 0.1.0 -\> 0.1.0 cupertino\_hooks : 0.1.0 -\> 0.1.0”; and 2 more. Also in this area: Fixes type safety and disposal logic in Flutter Hooks; New hooks for listenable selection, platform brightness, and keep-alive state.

_packages/flutter\_hooks/example, packages/flutter\hooks/example/lib · medium confidence · unverified

95 commits (12 fixes) modifying (repo-wide)

A change to existing behaviour in (repo-wide) — 95 commits (12 fixs), 4 files: “Added an \useAppStateLifecycle\ hook (\#259)”; “\[\#375\] Add. hook for ExpansionTileController (\#386)”; “update pub.dartlang.org to pub.dev (\#362)”; and 88 more (refs \#259, \#375, \#386, \#362, \#361, …).

(repo-wide) · low confidence · unverified

Test coverage

Added tests for new hooks and updated existing test coverage

Added widget tests for newly introduced hooks including useCarouselController, useDebounced, useDraggableScrollableController, useExpansibleController, useFixedExtentScrollController, useMaterialStatesController, useOnListenableChange, useOnStreamChange, useOverlayPortalController, useSearchController, useSnapshotController, and useTreeSliverController. Also added tests for useCallback with optional keys and updated useFocusNode tests to cover the new descendantsAreTraversable parameter. Removed deprecated useIsMounted tests and migrated useCallback tests from memoized\_test.dart to their own file. Fixed useOnStreamChange tests to handle cancelOnError behavior and added regression tests for useEffect key comparison with NaN and signed zero values. Also in this area: 5 commits (1 fix) modifying packages/flutter\_hooks; Add useFocusScopeNode hook and Korean documentation; Fixes type safety and disposal logic in Flutter Hooks; Updated test expectations for useTransformationController; New hooks for listenable selection, platform brightness, and keep-alive state; and 1 more.

_packages/flutter\hooks/test · medium confidence · unverified

Dependencies

95 commits updating dependencies (7 manifests)

A dependency / build maintenance change in (dependencies) — 95 commits (9 fixs), 7 files: “Added an \useAppStateLifecycle\ hook (\#259)”; “0.18.2+1”; “didBuild runs after build but before child build (\#42)”; and 90 more (refs \#259, \#42, \#46, \#45, \#211, …).

(dependencies) · medium confidence · unverified

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 62 → 65 (+3.1)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 95 → 95 (-0.3)
  • Architecture 99 → 97 (-1.9)
  • Maturity 50 → 56 (+6.3)
  • Readiness 54 → 54 (+0.0)
  • Security 84 → 89 (+5.5)
  • Performance 100 → 100 (+0.0)

Resolved (1)

  • Off-boarding risk: anonymized user #1

New (7)

  • Duplicated block (17 lines × 2) (packages/flutter_hooks/lib/src/carousel_controller.dart)
  • Duplicated block (17 lines × 2) (packages/flutter_hooks/lib/src/search_controller.dart)
  • Duplicated block (19 lines × 2) (packages/cupertino_hooks/lib/src/cupertino_tab_controller.dart)
  • Duplicated block (22 lines × 2) (packages/flutter_hooks/lib/src/tab_controller.dart)
  • Edited copy of a member (24 corresponding lines) (packages/flutter_hooks/example/lib/custom_hook_function.dart)
  • Edited copy of a member (6 corresponding lines) (packages/flutter_hooks/lib/src/animation.dart)
  • Off the main sequence: flutter_hooks

Changes since last survey

  • 12 commits — 11 feature/other, 1 fixes

By area

  • packages/flutter_hooks — 5 commits
  • (repo) — 3 commits
  • packages/cupertino_hooks — 2 commits
  • (root) — 1 commit
  • packages/material_hooks — 1 commit

Notable commits

  • fix: Fix changelog format
  • change: Give Material and Cupertino hooks their own README sections
  • change: List hooks in a table in material_hooks and cupertino_hooks READMEs
  • change: Merge pull request #482 from runoob-coder/master
  • change: Merge pull request #494 from rrousselGit/material-cupertino-hooks
  • change: Merge pull request #496 from rrousselGit/release/0.21.4
  • change: Move Material/Cupertino hooks to material_hooks and cupertino_hooks
  • change: Require Flutter 3.47
  • change: Stop re-exporting flutter_hooks from material_hooks and cupertino_hooks
  • change: The following packages have been updated: flutter_hooks : 0.21.3+1 -> 0.21.4 material_hooks : 0.1.0 -> 0.1.0 cupertino_hooks : 0.1.0 -> 0.1.0
  • change: Use Unreleased header in new packages' changelogs
  • change: Use a pub workspace instead of pubspec_overrides

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

rrousselGit/flutter_hooks was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 12 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 1c47821832bdc45a04b61248d99725e9f45690b7 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.42+preprod-6bc2a431cb25.