TLTextFieldStyle class

Constructors

TLTextFieldStyle({TextStyle? style, InputDecoration? decoration, List<TextInputFormatter>? inputFormatters, bool? enabled, bool readOnly = false, TextInputType? keyboardType, TextInputAction? textInputAction, int? maxLines, int? minLines, int? maxLength, MaxLengthEnforcement? maxLengthEnforcement, bool? showCursor, double cursorWidth = 2, double? cursorHeight, Radius? cursorRadius, Color? cursorColor})
const

Properties

cursorColor Color?
光标颜色
final
cursorHeight double?
光标高度
final
cursorRadius Radius?
光标弧度
final
cursorWidth double
光标宽度
final
decoration InputDecoration?
用于控制TextField的外观显示,如提示文本、背景颜色、边框等
final
enabled bool?
输入框是否禁用;如果为false,则输入框会被禁用,禁用状态不接收输入和手势事件,同时显示禁用态样式(在其decoration中定义)。
final
hashCode int
The hash code for this object.
no setterinherited
inputFormatters List<TextInputFormatter>?
用于指定输入格式;当用户输入内容改变时,会根据指定的格式来校验。
final
keyboardType TextInputType?
键盘类型
final
maxLength int?
输入框中允许的最大字符数.设置此项会让TextField右下角有一个输入数量的统计字符串
final
maxLengthEnforcement MaxLengthEnforcement?
maxLengthEnforcement
final
maxLines int?
不是允许输入的最大行数,指的是输入框内可显示的高度是几行,超过设定行数后,scroll滚动显示。系统设置默认1行,这里null则表示无限制(多行)
final
minLines int?
最小行数且设置时最小值为1
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCursor bool?
是否显示光标
final
style TextStyle?
文本样式
final
textInputAction TextInputAction?
设置键盘上enter键的显示内容
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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