KeyboardMode enum

Whether the software keyboard follows the app, or the person looking at it.

An axis applied on top of a Device, like ScreenOrientation — and like it in the way that matters: a phone with its keyboard up is the same phone, with less screen.

Auto is not "off". It is the whole feature: the app asks for a keyboard when a field takes focus and lets go of it when the view dismisses one, and that is what a phone does. The two forced states are for the layout with no field in it — what does this do with 336 points less — which nothing on screen would otherwise ask.

Here rather than beside the guest that drives it, for the reason ScreenOrientation is: a PreviewCanvas names these, and a project declaring one must not have to import Flutter to do it.

Inheritance
Available extensions

Values

auto → const KeyboardMode

Exactly what the app asks for. The default everywhere.

up → const KeyboardMode

Raised, focus or no focus. Sticky until it is cleared, or until the keyboard's own dismiss key is pressed.

down → const KeyboardMode

Down, whatever the app asks for.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

values → const List<KeyboardMode>
A constant List of the values in this enum, in order of their declaration.