PITextFieldStyle class

text Field style

Inheritance

Constructors

PITextFieldStyle({TextEditingController? controller, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, double? borderWidth, Color? borderColor, Color? borderFocusColor, String? placeholder, TextStyle? placeholderStyle, EdgeInsetsGeometry? contentPadding, TextStyle? textStyle, TextAlign? textAlign, TextInputAction? textInputAction, String? cancelText, dynamic handlerSearch(String)?, Function? onSubmitted, int? hintMaxLines, int? maxLength, int? maxLines = 1, int? minLines = 1, Widget? prefix, Widget? suffix, bool autoFocus = false, bool? isSearch = false, bool? showBorder = true, bool? showClearButton = false, bool? showPrefixIcon = false})

Properties

autoFocus bool
final
borderColor Color?
边框的颜色
final
borderFocusColor Color?
边框聚焦时候的颜色
final
borderWidth double?
边框的宽度
final
cancelText String?
清空输入的搜索关键字文字,默认清除
final
contentPadding EdgeInsetsGeometry?
输入框内边距
final
controller TextEditingController?
输入框控制器
final
handlerSearch → dynamic Function(String)?
搜索方法的回调函数
final
hashCode int
The hash code for this object.
no setterinherited
hintMaxLines int?
final
inputFormatters List<TextInputFormatter>?
用于指定输入格式;当用户输入内容改变时,会根据指定的格式来校验。
final
isSearch bool?
是否是搜索框
final
keyboardType TextInputType?
键盘类型
final
maxLength int?
最大长度
final
maxLines int?
最大行数
final
minLines int?
最小行数
final
onSubmitted Function?
final
placeholder String?
输入框没有内容时候的占位内容
final
placeholderStyle TextStyle?
占位内容的文字样式
final
prefix Widget?
左侧内容
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBorder bool?
显示边框
final
showClearButton bool?
显示清除按钮
final
showPrefixIcon bool?
显示left icon
final
suffix Widget?
右侧内容
final
textAlign TextAlign?
输入框的文字对齐方式
final
textInputAction TextInputAction?
键盘右下角按钮显示的文字
final
textStyle TextStyle?
输入框文字样式
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