CHField class

Inheritance

Constructors

CHField({Key? key, required TextEditingController controller, TextInputType? keyboardType, FocusNode? focusNode, double height = 40, bool readonly = false, bool clearable = true, bool autofocus = false, List<TextInputFormatter>? inputFormatters, Widget? prefixWidget, Widget? suffixWidget, TextStyle? style, String type = "text", int rows = 2, String? hintText, TextStyle? hintStyle, bool isDense = true, bool showEyes = true, int? maxLength, String? counterText, TextStyle? counterStyle, Color? iconColor, TextAlign? textAlign, InputBorder? border, InputBorder? enabledBorder, InputBorder? focusBorder, InputBorder? disabledBorder, EdgeInsetsGeometry? contentPadding, double? contentPaddingHorizontal, BoxConstraints? prefixIconConstraints, BoxConstraints? suffixIconConstraints, Color? fillColor, bool filled = false, bool? showCursor, Color? cursorColor, double cursorWidth = 2.0, double? cursorHeight, Radius? cursorRadius, bool? enabled, Widget? label, TextStyle? labelStyle, String? labelText, TextStyle? floatingLabelStyle, ValueChanged<String>? onSubmitted, ValueChanged<String>? onChanged, VoidCallback? onClearable, GestureTapCallback? onTap})
const

Properties

autofocus bool
final
border InputBorder?
final
clearable bool
final
contentPadding EdgeInsetsGeometry?
final
contentPaddingHorizontal double?
final
controller TextEditingController
final
counterStyle TextStyle?
final
counterText String?
final
cursorColor Color?
final
cursorHeight double?
final
cursorRadius Radius?
final
cursorWidth double
final
disabledBorder InputBorder?
final
enabled bool?
final
enabledBorder InputBorder?
final
fillColor Color?
final
filled bool
final
floatingLabelStyle TextStyle?
final
focusBorder InputBorder?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
height double
final
hintStyle TextStyle?
final
hintText String?
final
iconColor Color?
final
inputFormatters List<TextInputFormatter>?
final
isDense bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
label Widget?
final
labelStyle TextStyle?
final
labelText String?
final
maxLength int?
final
onChanged ValueChanged<String>?
final
onClearable VoidCallback?
final
onSubmitted ValueChanged<String>?
final
onTap GestureTapCallback?
final
prefixIconConstraints BoxConstraints?
final
prefixWidget Widget?
final
readonly bool
final
rows int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCursor bool?
final
showEyes bool
final
style TextStyle?
final
suffixIconConstraints BoxConstraints?
final
suffixWidget Widget?
final
textAlign TextAlign?
final
type String
final

Methods

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