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.
MIT License
3.13k
stars
179
forks
source link
Custom Hook creation with class example is not clear. #307
I am trying to create my own custom hook with many primary hooks (useState, useCallback, etc.) . But I am unable to write that with current example provided in the documentation. Since I am new to Flutter I don't have clue to implement my custom Hook.
I am trying to create my own custom hook with many primary hooks (useState, useCallback, etc.) . But I am unable to write that with current example provided in the documentation. Since I am new to Flutter I don't have clue to implement my custom Hook.
Blogs explored
I somehow figured a way to implement on my own, but I am getting type changed error.
My current snippet.
use_counter.dart
Usage
main.dart