Skip to main content
1

🔍 Focus Scope Access

focusScope
FocusScopeNode
The underlying node that manages the focus for the current widget tree. Use it for advanced focus inspection.
final scope = context.focusScope;
2

🚀 Navigation & Control

nextFocus()
void
Moves the focus to the next focusable widget in the traversal order. Essential for smooth form submission flow.
TextField(onSubmitted: (_) => context.nextFocus());
prevFocus()
void
Moves the focus to the previous focusable widget in the traversal order. Useful for implementing “back” logic in forms.
ElevatedButton(
    onPressed: () => context.prevFocus(),
    child: Text('Previous')
);
requestFocus(FocusNode focusNode)
void
Instantly transfers focus to a specific, non-sequential FocusNode.
final specificNode = FocusNode();
`{...}`
context.requestFocus(specificNode);
unFocus()
void
The Keyboard Slayer. Dismisses the software keyboard and removes focus from any active field.
ElevatedButton(
    onPressed: () => context.unFocus(),
    child: Text('Done'),
);