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.
MIT License
3.13k stars 179 forks source link

Add focusScopeNode hook #316

Closed iamsahilsonawane closed 1 year ago

iamsahilsonawane commented 2 years ago

Is your feature request related to a problem? Please describe. Currently working on some desktop and TV application with lot of focus controls to play. I use useFocusNode and totally love it, but lack the hook for focus scope node for the FocusScopeWidget really gets into the way creating one hook separately for the internal semi widely used widget's focus node.

Describe the solution you'd like Would like to have it in the package itself. Creating a new useFocusScopeNode hook.

Describe alternatives you've considered I am using a separate hook file in the projects for this.

Additional context I'll be having a pull request for this coming. Would love to contribute!