PINTextField class

Inheritance
Available Extensions

Constructors

PINTextField({Key? key, GestureTapCallback? onTap, PINTextFieldValueChanged? onChanged, PINTextFieldValueChanged? onDone, bool autoFocus = true, bool needKeyBoard = true, bool obscureText = false, int maxLength = 4, List<TextInputFormatter>? inputFormatter, FocusNode? focusNode, Decoration? decoration, Decoration? pinDecoration, Decoration? hasFocusPinDecoration, TextStyle? textStyle, PINTextFieldTextBuilder? textBuilder, Size boxSize = const Size(40, 40), List<Widget?> spaces = const [], TextInputLimitFormatter inputLimitFormatter = TextInputLimitFormatter.text, PINTextFieldBuilder? builder, TextEditingController? controller})
const

Properties

autoFocus bool
是否自动获取焦点
final
boxSize Size
box 方框的大小
final
builder PINTextFieldBuilder?
构建 TextField
final
controller TextEditingController?
final
decoration Decoration?
整个组件装饰器
final
focusNode FocusNode?
输入框焦点管理
final
hasFocusPinDecoration Decoration?
有文字后的输入框装饰器
final
hashCode int
The hash code for this object.
no setterinherited
inputFormatter List<TextInputFormatter>?
额外配置输入框内容限制
final
inputLimitFormatter TextInputLimitFormatter
限制文本输入类型 包括键盘类型
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxLength int
输入框数量
final
needKeyBoard bool
是否需要自动弹出键盘
final
obscureText bool
是否隐藏文本
final
onChanged PINTextFieldValueChanged?
输入内容监听
final
onDone PINTextFieldValueChanged?
输入完成后回调
final
onTap GestureTapCallback?
final
pinDecoration Decoration?
默认输入框装饰器
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaces List<Widget?>
box 中间添加 东西
final
textBuilder PINTextFieldTextBuilder?
text builder
final
textStyle TextStyle?
内文字样式
final

Methods

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