Results for “FocusScope”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Guides
API reference
- FocusScopeclass
FocusScope is similar to a Focus, but also serves as a scope for its descendants, restricting focus traversal to the scoped controls. widgets.FocusScope FocusScope Focus Scope
- FocusScopeNode.newconstructor
Creates a FocusScopeNode. widgets.FocusScopeNode.FocusScopeNode.new FocusScopeNode new Focus Scope Node.new constructor widgets
- FocusScope.newconstructor
Creates a widget that manages a FocusScopeNode. widgets.FocusScope.FocusScope.new FocusScope new Focus Scope.new constructor widgets
- FocusScope.withExternalFocusNodeconstructor
Creates a FocusScope widget that uses the given focusScopeNode as the source of truth for attributes on the node, rather than the attributes of this widget. widgets.FocusScope.FocusScope.withExternalFocusNode
- FocusScopeNodeclass
descendants, maintaining information about which descendant is currently or was last focused. widgets.FocusScopeNode FocusScopeNode Focus Scope Node class widgets
- widgets.TraversalEdgeBehaviorenum
Controls the focus transfer at the edges of a FocusScopeNode. For movement transfers (previous or next), the edge represents the first or last items. For directional transfers
- widgets.FocusOnKeyCallbacktypedef
Signature of a callback used by Focus.onKey and FocusScope.onKey to receive key events. widgets.FocusOnKeyCallback FocusOnKeyCallback Focus On Key Callback typedef widgets
- widgets.FocusOnKeyEventCallbacktypedef
Signature of a callback used by Focus.onKeyEvent and FocusScope.onKeyEvent to receive key events. widgets.FocusOnKeyEventCallback FocusOnKeyEventCallback Focus On Key Event Callback typedef widgets
Version changes
- Migrate RawKeyEvent/RawKeyboard system to KeyEvent/HardwareKeyboard system3.19.0breaking
For some time now (years), Flutter has had two key event systems
- Make sure that a FocusScope doesn't crash in 0x0 environment3.44.0bugfix
Make sure that a FocusScope doesn't crash in 0x0 environment (Framework, by @ahmedsameha1). FocusScope
- Migrate ShortcutActivator and ShortcutManager to KeyEvent system3.16.0breaking
instead of `Focus.onKey`, or a similar change if using `FocusScope`, `FocusNode` or `FocusScopeNode`. If you're using a `RawKeyboardListener`, switch to using a `KeyboardListener` instead
- Deprecated API removed after v3.163.19.0removed
release have been removed. TextButton ElevatedButton OutlinedButton ButtonStyle TextButton.styleFrom ElevatedButton.styleFrom OutlinedButton.styleFrom ThemeData NavigatorState FocusScopeNode Navigator FocusScope WidgetsApp FocusNode FocusNode.enclosingScope PlatformMenuBar TextTheme WidgetInspectorService WidgetInspectorServiceExtensions