Using Flutter Hooks

Manages local UI state and side effects in Flutter using the flutter_hooks package (v0.21.x) with HookWidget, useState, useEffect, useMemoized, useAnimationController, and custom hooks. Use this skill when replacing StatefulWidget boilerplate with hooks, reusing stateful UI logic across widgets, managing controller lifecycles (TextEditingController, AnimationController, ScrollController) without manual dispose, implementing countdown timers or subscriptions in widgets, mixing flutter_hooks with Riverpod via HookConsumerWidget, or any time the words 'flutter hooks', 'useEffect', 'useState', 'HookWidget', or 'flutter_hooks' appear in the request.

Poorgramer-Zack 6a80f66 8.0 KB Updated

File contents

Poorgramer-Zack/dart-expert-skills/tree/main/skills/flutter-hooks commit 6a80f6693f

Frequently asked questions

npx skillmds@latest add poorgramer-zack/using-flutter-hooks