@@ -10,6 +10,7 @@ FocusNode useFocusNode({
1010 bool skipTraversal = false ,
1111 bool canRequestFocus = true ,
1212 bool descendantsAreFocusable = true ,
13+ bool descendantsAreTraversable = true ,
1314}) {
1415 return use (
1516 _FocusNodeHook (
@@ -18,6 +19,7 @@ FocusNode useFocusNode({
1819 skipTraversal: skipTraversal,
1920 canRequestFocus: canRequestFocus,
2021 descendantsAreFocusable: descendantsAreFocusable,
22+ descendantsAreTraversable: descendantsAreTraversable,
2123 ),
2224 );
2325}
@@ -29,13 +31,15 @@ class _FocusNodeHook extends Hook<FocusNode> {
2931 required this .skipTraversal,
3032 required this .canRequestFocus,
3133 required this .descendantsAreFocusable,
34+ required this .descendantsAreTraversable,
3235 });
3336
3437 final String ? debugLabel;
3538 final FocusOnKeyEventCallback ? onKeyEvent;
3639 final bool skipTraversal;
3740 final bool canRequestFocus;
3841 final bool descendantsAreFocusable;
42+ final bool descendantsAreTraversable;
3943
4044 @override
4145 _FocusNodeHookState createState () {
@@ -50,6 +54,7 @@ class _FocusNodeHookState extends HookState<FocusNode, _FocusNodeHook> {
5054 skipTraversal: hook.skipTraversal,
5155 canRequestFocus: hook.canRequestFocus,
5256 descendantsAreFocusable: hook.descendantsAreFocusable,
57+ descendantsAreTraversable: hook.descendantsAreTraversable,
5358 );
5459
5560 @override
@@ -59,6 +64,7 @@ class _FocusNodeHookState extends HookState<FocusNode, _FocusNodeHook> {
5964 ..skipTraversal = hook.skipTraversal
6065 ..canRequestFocus = hook.canRequestFocus
6166 ..descendantsAreFocusable = hook.descendantsAreFocusable
67+ ..descendantsAreTraversable = hook.descendantsAreTraversable
6268 ..onKeyEvent = hook.onKeyEvent;
6369 }
6470
0 commit comments