InputField class

Inheritance

Constructors

InputField({Key? key, String? text, bool obscureText = false, Decoration? decoration, Decoration? focusDecoration, int? maxLines = 1, double height = 48, double? width, TextInputAction textInputAction = TextInputAction.done, Color? normalColor, Color? focusColor, ValueChanged<String>? onSubmitted, TextEditingController? controller, String? hintText, FocusNode? focusNode, TextStyle? style, TextStyle? hintStyle, bool leftIconEnable = false, Widget? leftWidget, Widget? rightWidget, Color? backGroundColor, bool nonDecoration = false, double? contentPadding, List<TextInputFormatter>? inputFormatters, VoidCallback? onEditingComplete, VoidCallback? cancelCallBack, FocusScopeNode? scopeNode, int? maxLength, String? exceedLimitTip, TextInputType keyboardType = TextInputType.text, bool enable = true, Color? cursorColor, EdgeInsetsGeometry? padding, bool? readOnly = false, ValueChanged<String>? onChanged, TextAlign textAlign = TextAlign.start, Widget? clearWidget, String? labelText, EdgeInsetsGeometry? lablePadding, Widget? replacement, bool showClear = true, bool onChangeDelay = false, int delayDuration = 1000, bool autoFocus = false, InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none)})
const
InputField.border({Key? key, String? text, bool obscureText = false, Decoration? decoration, Decoration? focusDecoration, int? maxLines = 1, double height = 48, double? width, TextInputAction textInputAction = TextInputAction.next, Color? normalColor, Color? focusColor = const Color(0xfff5f5f7), ValueChanged<String>? onSubmitted, TextEditingController? controller, String? hintText, TextStyle? style, TextStyle? hintStyle, FocusNode? focusNode, Widget? leftWidget, Widget? rightWidget, Color? backGroundColor, bool leftIconEnable = false, bool nonDecoration = true, TextInputType keyboardType = TextInputType.text, double? contentPadding, VoidCallback? onEditingComplete, List<TextInputFormatter>? inputFormatters, VoidCallback? cancelCallBack, int? maxLength, FocusScopeNode? scopeNode, String? exceedLimitTip, bool enable = true, Color? cursorColor, EdgeInsetsGeometry? padding, bool? readOnly = false, ValueChanged<String>? onChanged, TextAlign textAlign = TextAlign.start, Widget? clearWidget, bool showClear = true, String? labelText, EdgeInsetsGeometry? lablePadding, Widget? replacement, InputBorder? inputBorder, InputBorder? enabledBorder, InputBorder? focusedBorder, bool autoFocus = false, bool onChangeDelay = false, int delayDuration = 1000})
const
InputField.noneDecoration({Key? key, String? text, bool obscureText = false, Decoration? decoration, Decoration? focusDecoration, int? maxLines = 1, double height = 48, double? width, TextInputAction textInputAction = TextInputAction.next, Color? normalColor, Color? focusColor = const Color(0xfff5f5f7), ValueChanged<String>? onSubmitted, TextEditingController? controller, String? hintText, TextStyle? style, TextStyle? hintStyle, FocusNode? focusNode, Widget? leftWidget, Widget? rightWidget, Color? backGroundColor, bool leftIconEnable = false, bool nonDecoration = true, TextInputType keyboardType = TextInputType.text, double? contentPadding, VoidCallback? onEditingComplete, List<TextInputFormatter>? inputFormatters, VoidCallback? cancelCallBack, int? maxLength, FocusScopeNode? scopeNode, String? exceedLimitTip, bool enable = true, Color? cursorColor, EdgeInsetsGeometry? padding, bool? readOnly = false, ValueChanged<String>? onChanged, TextAlign textAlign = TextAlign.start, Widget? clearWidget, bool showClear = true, String? labelText, EdgeInsetsGeometry? lablePadding, Widget? replacement, bool onChangeDelay = false, int delayDuration = 1000, bool autoFocus = false, InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none)})
const
InputField.search({Key? key, String? text, bool obscureText = false, Decoration? decoration, Decoration? focusDecoration, int? maxLines = 1, double height = 48, double? width, TextInputAction textInputAction = TextInputAction.search, Color? normalColor, Color? focusColor, ValueChanged<String>? onSubmitted, TextEditingController? controller, String? hintText, FocusNode? focusNode, TextStyle? style, TextStyle? hintStyle, Widget? leftWidget, Widget? rightWidget, bool leftIconEnable = true, bool nonDecoration = false, Color? backGroundColor, TextInputType keyboardType = TextInputType.text, VoidCallback? onEditingComplete, double? contentPadding, List<TextInputFormatter>? inputFormatters, int? maxLength, VoidCallback? cancelCallBack, FocusScopeNode? scopeNode, String? exceedLimitTip, bool enable = true, Color? cursorColor, EdgeInsetsGeometry? padding, bool? readOnly = false, ValueChanged<String>? onChanged, TextAlign textAlign = TextAlign.start, Widget? clearWidget, String? labelText, EdgeInsetsGeometry? lablePadding, Widget? replacement, bool showClear = true, bool onChangeDelay = false, int delayDuration = 1000, bool autoFocus = false, InputBorder? inputBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? enabledBorder = const OutlineInputBorder(borderSide: BorderSide.none), InputBorder? focusedBorder = const OutlineInputBorder(borderSide: BorderSide.none)})
const

Properties

autoFocus bool
final
backGroundColor Color?
final
cancelCallBack VoidCallback?
final
clearWidget Widget?
final
contentPadding double?
final
controller TextEditingController?
final
cursorColor Color?
final
decoration Decoration?
final
delayDuration int
final
enable bool
final
enabledBorder InputBorder?
final
exceedLimitTip String?
final
focusColor Color?
final
focusDecoration Decoration?
final
focusedBorder InputBorder?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
hintStyle TextStyle?
final
hintText String?
final
inputBorder InputBorder?
final
inputFormatters List<TextInputFormatter>?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
final
labelText String?
final
lablePadding EdgeInsetsGeometry?
final
leftIconEnable bool
final
leftWidget Widget?
final
maxLength int?
final
maxLines int?
final
nonDecoration bool
final
normalColor Color?
final
obscureText bool
final
onChanged ValueChanged<String>?
final
onChangeDelay bool
final
onEditingComplete VoidCallback?
final
onSubmitted ValueChanged<String>?
final
padding EdgeInsetsGeometry?
final
readOnly bool?
final
replacement Widget?
final
rightWidget Widget?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopeNode FocusScopeNode?
final
showClear bool
final
style TextStyle?
final
text String?
final
textAlign TextAlign
final
textInputAction TextInputAction
final
width double?
final

Methods

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