PWEditField class

Created by liSen on 2019/12/7 15:00. @author liSen < 453354858@qq.com >

Inheritance

Constructors

PWEditField({@required int? textFieldCount, double textFieldWidth = 30, double textFieldHeight = 30, double textFieldSpace = 3, bool autoFocus = false, bool obscureText = true, bool isDoneClean = false, TextStyle textStyle = const TextStyle(fontSize: 12, color: Colors.black54, decoration: TextDecoration.none), TextInputType keyboardType = TextInputType.number, List<TextInputFormatter>? inputFormatters, BoxDecoration? focusDecoration, BoxDecoration? unFocusDecoration, ValueChanged<String>? onInputDone, ValueChanged<String>? onChanged, TextEditingController? controller, Key? key})
只能输入数字 Only numbers can be entered inputFormatters = [WhitelistingTextInputFormatter(RegExp("0-9")),]

Properties

autoFocus bool
以下是TextField 原有属性 Following are the original TextField properties
final
controller TextEditingController?
getter/setter pair
focusDecoration BoxDecoration?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
inputFormatters List<TextInputFormatter>?
final
isDoneClean bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
final
obscureText bool
final
onChanged ValueChanged<String>?
final
onInputDone ValueChanged<String>?
所有密码框输入完成后监听 Listen after all password boxes are entered
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textFieldCount int?
密码框数量 Number of password boxes
final
textFieldHeight double
密码框高度 Password box height
final
textFieldSpace double
密码框之间的间距 Space between password boxes
final
textFieldWidth double
密码框宽度 Password box width
final
textStyle TextStyle
final
unFocusDecoration BoxDecoration?
getter/setter pair

Methods

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