CTextField class

Inheritance

Constructors

CTextField({Key? key, String type = "CUSTOM", TextEditingController? controller, InputDecoration? decoration, String? hintText, TextInputType? keyboardType, TextInputAction? textInputAction = TextInputAction.next, TextStyle? style, TextStyle? styleHint, bool readOnly = false, bool obscureText = false, int? maxLines, int? minLines, int? maxLength, dynamic onEditingComplete()?, dynamic onFieldSubmitted(String)?, String? validator(String?)?, AutovalidateMode? autoValidateMode, bool? enabled, dynamic onTap()?, dynamic onChange(String)?, FocusNode? focusNode, Widget? suffixIcon, IconData? suffixIconPasswordEye, IconData? suffixIconPasswordEyeOff, Color? suffixIconColor, Widget? prefixIcon, Color? prefixIconColor, TextCapitalization? textCapitalization, bool filled = true, Color? fillColor = Colors.white, Color? focusColor = Colors.white, OutlineInputBorder? border, OutlineInputBorder? enabledBorder, OutlineInputBorder? focusBorder, OutlineInputBorder? errorBorder})
CTextField.password({Key? key, String type = "PASSWORD", TextEditingController? controller, InputDecoration? decoration, String? hintText, TextInputType? keyboardType, TextInputAction? textInputAction = TextInputAction.next, TextStyle? style, TextStyle? styleHint, bool readOnly = false, bool obscureText = true, int? maxLines = 1, int? minLines, int? maxLength, dynamic onChange(String)?, dynamic onEditingComplete()?, dynamic onFieldSubmitted(String)?, String? validator(String?)?, AutovalidateMode? autoValidateMode, bool? enabled, dynamic onTap()?, FocusNode? focusNode, Widget? suffixIcon, IconData? suffixIconPasswordEye, IconData? suffixIconPasswordEyeOff, Color? suffixIconColor, Widget? prefixIcon, Color? prefixIconColor, TextCapitalization? textCapitalization, bool filled = true, Color? fillColor = Colors.white, Color? focusColor = Colors.white, OutlineInputBorder? border, OutlineInputBorder? enabledBorder, OutlineInputBorder? focusBorder, OutlineInputBorder? errorBorder})

Properties

autoValidateMode AutovalidateMode?
final
border OutlineInputBorder?
getter/setter pair
controller TextEditingController?
final
decoration InputDecoration?
final
enabled bool?
final
enabledBorder OutlineInputBorder?
getter/setter pair
errorBorder OutlineInputBorder?
getter/setter pair
fillColor Color?
final
filled bool
getter/setter pair
focusBorder OutlineInputBorder?
getter/setter pair
focusColor Color?
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
maxLength int?
final
maxLines int?
final
minLines int?
final
obscureText bool
getter/setter pair
onChange → dynamic Function(String)?
final
onEditingComplete → dynamic Function()?
final
onFieldSubmitted → dynamic Function(String)?
final
onTap → dynamic Function()?
final
prefixIcon Widget?
final
prefixIconColor Color?
final
readOnly bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
final
styleHint TextStyle?
final
suffixIcon Widget?
getter/setter pair
suffixIconColor Color?
final
suffixIconPasswordEye IconData?
final
suffixIconPasswordEyeOff IconData?
final
textCapitalization TextCapitalization?
final
textInputAction TextInputAction?
final
type String
final
validator String? Function(String?)?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CTextField>
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, int wrapWidth = 65}) 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