Class EditableText
Inheritance
System.Object
EditableText
Syntax
public class EditableText : StatefulWidget
Constructors
EditableText(TextEditingController, FocusNode, TextStyle, Color, Color, Boolean, Boolean, TextAlign, Nullable<TextDirection>, Nullable<Single>, Nullable<Int32>, Boolean, Color, TextSelectionControls, TextInputType, Nullable<TextInputAction>, TextCapitalization, ValueChanged<String>, VoidCallback, ValueChanged<String>, SelectionChangedCallback, List<TextInputFormatter>, Boolean, EdgeInsets, Boolean, Key, Nullable<Single>, Radius, Boolean, Offset, Boolean, Nullable<Brightness>, DragStartBehavior, Nullable<Boolean>)
Declaration
public EditableText(TextEditingController controller, FocusNode focusNode, TextStyle style, Color cursorColor, Color backgroundCursorColor = null, bool obscureText = false, bool autocorrect = false, TextAlign textAlign = TextAlign.left, TextDirection? textDirection = default(TextDirection? ), float? textScaleFactor = default(float? ), int? maxLines, bool autofocus = false, Color selectionColor = null, TextSelectionControls selectionControls = null, TextInputType keyboardType = null, TextInputAction? textInputAction = default(TextInputAction? ), TextCapitalization textCapitalization = TextCapitalization.none, ValueChanged<string> onChanged = null, VoidCallback onEditingComplete = null, ValueChanged<string> onSubmitted = null, SelectionChangedCallback onSelectionChanged = null, List<TextInputFormatter> inputFormatters = null, bool rendererIgnoresPointer = false, EdgeInsets scrollPadding = null, bool unityTouchKeyboard = false, Key key = null, float? cursorWidth, Radius cursorRadius = null, bool cursorOpacityAnimates = false, Offset cursorOffset = null, bool paintCursorAboveText = false, Brightness? keyboardAppearance, DragStartBehavior dragStartBehavior = DragStartBehavior.down, bool? enableInteractiveSelection = default(bool? ))
Parameters
Fields
autocorrect
Declaration
public readonly bool autocorrect
Field Value
Type |
Description |
System.Boolean |
|
autofocus
Declaration
public readonly bool autofocus
Field Value
Type |
Description |
System.Boolean |
|
backgroundCursorColor
Declaration
public readonly Color backgroundCursorColor
Field Value
controller
Declaration
public readonly TextEditingController controller
Field Value
cursorColor
Declaration
public readonly Color cursorColor
Field Value
cursorOffset
Declaration
public readonly Offset cursorOffset
Field Value
cursorOpacityAnimates
Declaration
public readonly bool cursorOpacityAnimates
Field Value
Type |
Description |
System.Boolean |
|
cursorRadius
Declaration
public readonly Radius cursorRadius
Field Value
cursorWidth
Declaration
public readonly float? cursorWidth
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
debugDeterministicCursor
Declaration
public static bool debugDeterministicCursor
Field Value
Type |
Description |
System.Boolean |
|
dragStartBehavior
Declaration
public readonly DragStartBehavior dragStartBehavior
Field Value
enableInteractiveSelection
Declaration
public readonly bool? enableInteractiveSelection
Field Value
Type |
Description |
System.Nullable<System.Boolean> |
|
focusNode
Declaration
public readonly FocusNode focusNode
Field Value
inputFormatters
Declaration
public readonly List<TextInputFormatter> inputFormatters
Field Value
keyboardAppearance
Declaration
public readonly Brightness? keyboardAppearance
Field Value
keyboardType
Declaration
public readonly TextInputType keyboardType
Field Value
maxLines
Declaration
public readonly int? maxLines
Field Value
Type |
Description |
System.Nullable<System.Int32> |
|
obscureText
Declaration
public readonly bool obscureText
Field Value
Type |
Description |
System.Boolean |
|
onChanged
Declaration
public readonly ValueChanged<string> onChanged
Field Value
onEditingComplete
Declaration
public readonly VoidCallback onEditingComplete
Field Value
onSelectionChanged
Declaration
public readonly SelectionChangedCallback onSelectionChanged
Field Value
onSubmitted
Declaration
public readonly ValueChanged<string> onSubmitted
Field Value
paintCursorAboveText
Declaration
public readonly bool paintCursorAboveText
Field Value
Type |
Description |
System.Boolean |
|
rendererIgnoresPointer
Declaration
public readonly bool rendererIgnoresPointer
Field Value
Type |
Description |
System.Boolean |
|
scrollPadding
Declaration
public readonly EdgeInsets scrollPadding
Field Value
selectionColor
Declaration
public readonly Color selectionColor
Field Value
selectionControls
Declaration
public readonly TextSelectionControls selectionControls
Field Value
style
Declaration
public readonly TextStyle style
Field Value
textAlign
Declaration
public readonly TextAlign textAlign
Field Value
textCapitalization
Declaration
public readonly TextCapitalization textCapitalization
Field Value
textDirection
Declaration
public readonly TextDirection? textDirection
Field Value
textInputAction
Declaration
public readonly TextInputAction? textInputAction
Field Value
textScaleFactor
Declaration
public readonly float? textScaleFactor
Field Value
Type |
Description |
System.Nullable<System.Single> |
|
unityTouchKeyboard
Declaration
public readonly bool unityTouchKeyboard
Field Value
Type |
Description |
System.Boolean |
|
Properties
selectionEnabled
Declaration
public bool selectionEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
createState()
Declaration
public override State createState()
Returns
Overrides
debugFillProperties(DiagnosticPropertiesBuilder)
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides