NativeTextInput class

Inheritance

Constructors

NativeTextInput({Key? key, TextEditingController? controller, BoxDecoration? decoration, FocusNode? focusNode, IosOptions? iosOptions, KeyboardType keyboardType = KeyboardType.defaultType, int maxLines = 1, double minHeightPadding = 18, int minLines = 1, String? placeholder, Color? placeholderColor, ReturnKeyType returnKeyType = ReturnKeyType.done, TextStyle? style, TextAlign textAlign = TextAlign.start, TextCapitalization textCapitalization = TextCapitalization.none, TextContentType? textContentType, ValueChanged<String>? onChanged, VoidCallback? onEditingComplete, ValueChanged<String?>? onSubmitted, VoidCallback? onTap})
const

Properties

controller TextEditingController?
Controlling the text being edited (https://api.flutter.dev/flutter/material/TextField/controller.html)
final
decoration BoxDecoration?
Controls the BoxDecoration of the box behind the text input (https://api.flutter.dev/flutter/cupertino/CupertinoTextField/decoration.html)
final
focusNode FocusNode?
Defines the keyboard focus for this widget (https://api.flutter.dev/flutter/material/TextField/focusNode.html)
final
hashCode int
The hash code for this object.
no setterinherited
iosOptions IosOptions?
iOS only options (cursorColor, keyboardAppearance)
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType KeyboardType
Type of keyboard to display for a given text-based view (https://developer.apple.com/documentation/uikit/uikeyboardtype)
final
maxLines int
The maximum number of lines to show at one time, wrapping if necessary (https://api.flutter.dev/flutter/material/TextField/maxLines.html)
final
minHeightPadding double
Extra vertical spacing added in addition to line height for iOS UITextView to fit well in single line mode Note: Text content height would be used instead if it is greater than this value
final
minLines int
Minimum number of lines of text input widget
final
onChanged ValueChanged<String>?
Called when the user initiates a change to text entry (https://api.flutter.dev/flutter/material/TextField/onChanged.html)
final
onEditingComplete VoidCallback?
Called when the user submits editable content (e.g., user presses the "done" button on the keyboard). (https://api.flutter.dev/flutter/material/TextField/onEditingComplete.html)
final
onSubmitted ValueChanged<String?>?
Called when the user indicates that they are done editing the text in the field (https://api.flutter.dev/flutter/material/TextField/onSubmitted.html)
final
onTap VoidCallback?
Called when the user taps the field.
final
placeholder String?
Placeholder text when text entry is empty (https://api.flutter.dev/flutter/cupertino/CupertinoTextField/placeholder.html)
final
placeholderColor Color?
The text color to use for the placeholder text
final
returnKeyType ReturnKeyType
Constants that specify the text string that displays in the Return key of a keyboard (https://developer.apple.com/documentation/uikit/uireturnkeytype)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
The style to use for the text being edited Only `fontSize`, `fontWeight`, `color` are supported (https://api.flutter.dev/flutter/material/TextField/style.html)
final
textAlign TextAlign
How the text should be aligned horizontally (https://api.flutter.dev/flutter/material/TextField/textAlign.html)
final
textCapitalization TextCapitalization
Configures how the platform keyboard will select an uppercase or lowercase keyboard (https://api.flutter.dev/flutter/material/TextField/textCapitalization.html)
final
textContentType TextContentType?
To identify the semantic meaning expected for a text-entry area (https://developer.apple.com/documentation/uikit/uitextcontenttype)
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<StatefulWidget>
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}) 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

Constants

viewType → const String