flutter_hooks icon indicating copy to clipboard operation
flutter_hooks copied to clipboard

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.

Results 54 flutter_hooks issues
Sort by recently updated
recently updated
newest added
trafficstars

This library currently returns a `ValueNotifier` which is a wrapper class for the value of the `useState`. With [class destructuring](https://dart.dev/language/patterns#destructuring-class-instances), we can destructure a `ValueNotifier` like the below: ```dart var...

enhancement
breaking

Fixes https://github.com/rrousselGit/flutter_hooks/issues/389

**Is your feature request related to a problem? Please describe.** When using `Listenable` with `useEffect` it can be a bit cumbersome to always repeat the same boilerplate off `addListener` and...

enhancement
good first issue

**What I did and description** I don't know whether it is a bug but I'll explain it first. I thought dispose function (printing `unmount` in the following code) should be...

enhancement

**Describe what scenario you think is uncovered by the existing examples/articles** Hello! I'm new to Dart and Flutter, but I've used React a lot. Since this library is a port...

good first issue
documentation

**Describe the bug** Calling activeIndex.value = newIndex is not causing a re-build of the widget. **To Reproduce** Full Reproducible code : ```dart class PracticeDetailScreen extends HookConsumerWidget { final YogaPracticeId practiceId;...

bug
question

**Is your feature request related to a problem? Please describe.** Add a hook for FixedExtentScrollController **Describe the solution you'd like** ```dart import 'package:flutter/material.dart'; import 'package:flutter_hooks/flutter_hooks.dart'; /// Creates [FixedExtentScrollController] that will...

enhancement
needs triage

**Describe the bug** Suppose you have Screen A using `useSingleTickerProvider`. Screen A is rebuilt when you push from Screen A to Screen B and when you pop from Screen B...

bug
needs triage

Fixes https://github.com/rrousselGit/flutter_hooks/issues/431 ### reference - https://github.com/flutter/flutter/pull/93166

[Official](https://api.flutter.dev/flutter/widgets/PageController-class.html) constructor: `PageController({int initialPage = 0, bool keepPage = true, double viewportFraction = 1.0, ScrollControllerCallback? onAttach, ScrollControllerCallback? onDetach})` Hook usePageController: `PageController usePageController( {int initialPage = 0, bool keepPage = true,...

enhancement
needs triage