TdTextField class

Inheritance

Constructors

TdTextField({Key? key, ValueChanged<String>? onChanged, String? initialValue, TextEditingController? controller, TextAlign textAlign = TextAlign.start, bool readOnly = false, bool clearable = false, TextInputType keyboardType = TextInputType.text, TextInputAction textInputAction = TextInputAction.done, TextCapitalization textCapitalization = TextCapitalization.none, int? maxLength, Icon? prefixIcon, Icon? suffixIcon, String? hintText, EdgeInsets? contentPadding, InputDecoration? decoration, bool autofocus = false, FocusNode? focusNode})
TdTextField.multiple({Key? key, ValueChanged<String>? onChanged, String? initialValue, TextEditingController? controller, TextAlign textAlign = TextAlign.start, bool readOnly = false, bool clearable = false, TextInputType keyboardType = TextInputType.multiline, TextInputAction textInputAction = TextInputAction.newline, TextCapitalization textCapitalization = TextCapitalization.none, int? maxLength, int? minLines = kTdTextFieldMultipleMinLine, int? maxLines = kTdTextFieldMultipleMaxLine, Icon? prefixIcon, Icon? suffixIcon, String? hintText, EdgeInsets? contentPadding, InputDecoration? decoration, bool autofocus = false, FocusNode? focusNode})

Properties

autofocus bool
获取焦点
final
clearable bool
是否可清空
final
contentPadding EdgeInsets?
编辑框内边距
final
controller TextEditingController?
控制器
final
decoration InputDecoration
输入框样式
final
focusNode FocusNode?
获取或者取消焦点使用
final
hashCode int
The hash code for this object.
no setterinherited
initialValue String?
初始值
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
键盘输入类型
final
maxLength int?
最多允许输入字符数
final
maxLines int?
最大行数
final
minLines int?
最小行数
final
onChanged ValueChanged<String>?
输入文本变化时回调
final
readOnly bool
是否只读输入框
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textAlign TextAlign
文本内容位置
final
textCapitalization TextCapitalization
键盘大写模式
final
textInputAction TextInputAction
键盘主要按钮类型
final

Methods

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