Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add useFocusScopeNode hook #317

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 19, 2023
Merged

Conversation

iamsahilsonawane
Copy link
Contributor

Added focus scope node for FocusScope widget.

class Example extends HookWidget {
  @override
  Widget build(BuildContext context) {
   final node = useFocusScopeNode();
   return FocusScope(autofocus: true, node: node, child: ...);        
  }
}

Fixes #316

@iamsahilsonawane iamsahilsonawane changed the title add useFocusScopeNode hook add useFocusScopeNode hook Jul 20, 2022
@codecov
Copy link

codecov bot commented Feb 19, 2023

Codecov Report

Base: 99.86% // Head: 99.86% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (bbf030a) compared to base (99738db).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #317   +/-   ##
=======================================
  Coverage   99.86%   99.86%           
=======================================
  Files          16       17    +1     
  Lines         741      765   +24     
=======================================
+ Hits          740      764   +24     
  Misses          1        1           
Impacted Files Coverage Δ
packages/flutter_hooks/lib/src/focus_node.dart 100.00% <ø> (ø)
...ckages/flutter_hooks/lib/src/focus_scope_node.dart 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rrousselGit rrousselGit merged commit 7dfcd62 into rrousselGit:master Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add focusScopeNode hook
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.