NavigationMode enum Null safety
Describes the navigation mode to be set by a MediaQuery widget.
The different modes indicate the type of navigation to be used in a widget subtree for those widgets sensitive to it.
MediaQuery.of(context).navigationMode to determine the navigation mode
in effect for the given context. Use a MediaQuery widget to set the
navigation mode for its descendant widgets.
- directional → const NavigationMode
This indicates a directional-based navigation mode.
This navigation mode indicates that arrow keys should be reserved for navigation operations, and secondary modifications operations, like moving sliders or cursors, will use alternative bindings or be disabled.
Some behaviors are also affected by this mode. For instance, disabled controls will retain focus when disabled, and will be able to receive focus (although they remain disabled) when traversed.
- traditional → const NavigationMode
This indicates a traditional keyboard-and-mouse navigation modality.
This navigation mode is where the arrow keys can be used for secondary modification operations, like moving sliders or cursors, and disabled controls will lose focus and not be traversable.
→ const List<
A constant List of the values in this enum, in order of their declaration.