PIInput class

Inheritance

Constructors

PIInput({Key? key, TextEditingController? controller, TextInputType? keyboardType, List<TextInputFormatter>? inputFormatters, double? borderWidth, Color? borderColor, int maxLines = 1, int minLines = 1, int? hintMaxLines = 1, bool autoFocus = false, int? maxLength, Color? borderFocusColor, String? placeholder, TextStyle? placeholderStyle, EdgeInsetsGeometry? contentPadding, TextStyle? textStyle, TextAlign? textAlign, Widget? suffix, Widget? prefix, TextInputAction? textInputAction, Function? onSubmitted})
const

Properties

autoFocus bool
final
borderColor Color?
边框的颜色
final
borderFocusColor Color?
边框聚焦时候的颜色
final
borderWidth double?
边框的宽度
final
contentPadding EdgeInsetsGeometry?
输入框内边距
final
controller TextEditingController?
输入框控制器
final
hashCode int
The hash code for this object.
no setterinherited
hintMaxLines int?
final
inputFormatters List<TextInputFormatter>?
用于指定输入格式;当用户输入内容改变时,会根据指定的格式来校验。
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
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
suffix Widget?
右侧内容
final
textAlign TextAlign?
输入框的文字对齐方式
final
textInputAction TextInputAction?
键盘右下角按钮显示的文字
final
textStyle TextStyle?
输入框文字样式
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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