MiniTextField class
输入框封装
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MiniTextField
Constructors
-
MiniTextField({Key? key, required TextEditingController controller, int maxLength = 20, bool autoFocus = false, TextInputType keyboardType = TextInputType.text, String hintText = '', FocusNode? focusNode, bool isInputPwd = false, Future<
bool> getVCode()?, String? keyName, Widget? icon, EdgeInsetsGeometry? contentPadding, IconData pwdOff = Icons.visibility_off, IconData pwdOn = Icons.visibility, bool showLine = false, TextStyle? hintTextStyle, VoidCallback? onClear, InputBorder? focusedBorder, InputBorder? enabledBorder}) -
const
Properties
- autoFocus → bool
-
final
- contentPadding → EdgeInsetsGeometry?
-
final
- controller → TextEditingController
-
final
- enabledBorder → InputBorder?
-
final
- focusedBorder → InputBorder?
-
final
- focusNode → FocusNode?
-
final
-
getVCode
→ (Future<
bool> Function()?) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → String
-
final
- hintTextStyle → TextStyle?
-
final
- icon → Widget?
-
final
- isInputPwd → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
final
- keyName → String?
-
用于集成测试寻找widget
final
- maxLength → int
-
final
- onClear → VoidCallback?
-
final
- pwdOff → IconData
-
final
- pwdOn → IconData
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showLine → bool
-
final
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