StandaloneInputControl class

A TextInputControl that intercepts Flutter's text input system, allowing VirtualKeypad to work with any standard TextField or TextFormField without requiring VirtualKeypadScope.

Used internally when VirtualKeypad(standalone: true).

Mixed-in types

Constructors

StandaloneInputControl({VoidCallback? onShow, VoidCallback? onHide})

Properties

configuration TextInputConfiguration?
The input configuration of the focused field.
no setter
currentValue TextEditingValue
The current text editing value of the focused field.
no setter
hashCode int
The hash code for this object.
no setterinherited
inputAction TextInputAction
The input action from the attached field's configuration.
no setter
isAttached bool
Whether a text input client is currently attached.
no setter
keyboardType KeyboardType
Derives a KeyboardType from the attached field's TextInputType.
no setter
onHide VoidCallback?
Called when a text field requests the keyboard to hide.
final
onShow VoidCallback?
Called when a text field requests the keyboard to show.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(TextInputClient client, TextInputConfiguration configuration) → void
Requests the text input control to attach to the given input client.
override
deleteBackward() → void
Deletes the character before the cursor, or deletes the selection.
detach(TextInputClient client) → void
Requests the text input control to detach from the given input client.
override
finishAutofillContext({bool shouldSave = true}) → void
Requests that the autofill context is finalized.
inherited
hide() → void
Requests that the text input control is hidden.
override
insertText(String text) → void
Inserts text at the current cursor/selection position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
performAction(TextInputAction action) → void
Performs an input action (e.g. done, go, search) on the active client.
requestAutofill() → void
Requests autofill from the text input control.
inherited
setCaretRect(Rect rect) → void
Informs the text input control about caret area changes.
inherited
setComposingRect(Rect rect) → void
Informs the text input control about composing area changes.
inherited
setEditableSizeAndTransform(Size editableBoxSize, Matrix4 transform) → void
Informs the text input control about client position changes.
inherited
setEditingState(TextEditingValue value) → void
Informs the text input control about editing state changes.
override
setSelectionRects(List<SelectionRect> selectionRects) → void
Informs the text input control about selection area changes.
inherited
setStyle({required String? fontFamily, required double? fontSize, required FontWeight? fontWeight, required TextDirection textDirection, required TextAlign textAlign}) → void
Informs the text input control about text style changes.
inherited
show() → void
Requests that the text input control is shown.
override
submit() → void
Submits the current input (triggers the input action).
toString() String
A string representation of this object.
inherited
updateConfig(TextInputConfiguration configuration) → void
Informs the text input control about input configuration changes.
inherited

Operators

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