SuperTextFieldImeInteractor class
Opens and closes an IME connection based on changes to focus and selection.
This widget watches focusNode for focus changes, and textController
for
selection changes.
All IME commands are handled and applied to text field text by the given textController
.
When focusNode gains focus, if the textController
doesn't have a selection, the caret is
placed at the end of the text.
When focusNode loses focus, the textController
's selection is cleared.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SuperTextFieldImeInteractor
Constructors
-
SuperTextFieldImeInteractor({Key? key, required GlobalKey<
ProseTextState< textKey, required FocusNode focusNode, required SuperTextFieldContext textFieldContext, required bool isMultiline, required Map<StatefulWidget> >String, SuperTextFieldSelectorHandler> selectorHandlers, TextInputAction? textInputAction, TextInputConfiguration? imeConfiguration, required AttributionStyleBuilder textStyleBuilder, TextAlign? textAlign, TextDirection? textDirection, required Widget child}) -
const
Properties
- child → Widget
-
The rest of the subtree for this text field.
final
- focusNode → FocusNode
-
FocusNode for this text field.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- imeConfiguration → TextInputConfiguration?
-
Preferences for how the platform IME should look and behave during editing.
final
- isMultiline → bool
-
Whether or not this text field supports multiple lines of text.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectorHandlers
→ Map<
String, SuperTextFieldSelectorHandler> -
Handlers for all Mac OS "selectors" reported by the IME.
final
- textAlign → TextAlign?
-
final
- textDirection → TextDirection?
-
final
- textFieldContext → SuperTextFieldContext
-
final
- textInputAction → TextInputAction?
-
The type of action associated with ENTER key.
final
-
textKey
→ GlobalKey<
ProseTextState< StatefulWidget> > -
GlobalKey that links this SuperTextFieldGestureInteractor to
the
ProseTextLayout
widget that paints the text for this text field.final - textStyleBuilder → AttributionStyleBuilder
-
Text style factory that creates styles for the content in
textController
based on the attributions in that content.final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< SuperTextFieldImeInteractor> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited