CustomTextField class

Inheritance
Available Extensions

Constructors

CustomTextField({Key? key, required TextEditingController controller, String? labelText, TextStyle? inputTextStyle, TextInputType? keyboardType, TextInputAction? textInputAction, Widget? prefixIcon, Widget? suffixIcon, Widget? suffix, Widget? prefix, bool? readOnly, bool? autofocus, dynamic onTap()?, dynamic onChanged(String)?, dynamic onFieldSubmitted(String)?, int? minLines, int? maxLines, bool? obscureText, int? maxLength, EdgeInsets? contentPadding, FocusNode? focus, Color? fillColor, bool? filled, Color? borderColor, Color? focusBorderColor, Color? errorBorderColor, Color? enabledBorderColor, Color? disabledBorderColor, String? hintText, double? borderRadius, double? focusBorderRadius, double? errorBorderRadius, double? enabledBorderRadius, double? disabledBorderRadius, bool? isEnabled, bool digitsOnly = false, TextStyle? labelStyle, TextStyle? hintStyle, TextStyle? prefixStyle, String? prefixText, String? validate(String?)?, bool? isDense, TextCapitalization? textCapitalization, Color? cursorColor, double? cursorHeight, double? cursorWidth, double? cursorRadius, bool? showCursor, bool? enable, String? obsecureCharacter})
const

Properties

autofocus bool?
This will be the autofocus of CustomTextField
final
borderColor Color?
final
borderRadius double?
final
contentPadding EdgeInsets?
This will be the contentPadding of text in CustomTextField
final
controller TextEditingController
This will be the controller of CustomTextField
final
cursorColor Color?
final
cursorHeight double?
final
cursorRadius double?
final
cursorWidth double?
final
digitsOnly bool
final
disabledBorderColor Color?
final
disabledBorderRadius double?
final
enable bool?
final
enabledBorderColor Color?
final
enabledBorderRadius double?
final
errorBorderColor Color?
final
errorBorderRadius double?
final
fillColor Color?
This is the focusNode of the textField
final
filled bool?
final
focus FocusNode?
This is the focusNode of the textField
final
focusBorderColor Color?
final
focusBorderRadius double?
final
hashCode int
The hash code for this object.
no setterinherited
hintStyle TextStyle?
final
hintText String?
final
inputTextStyle TextStyle?
This will be the input TextStyle for the CustomTextField
final
isDense bool?
final
isEnabled bool?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
This will be the keyboardType of CustomTextField
final
labelStyle TextStyle?
final
labelText String?
This will be the label Text for the CustomTextField
final
maxLength int?
This will be the maxLength of text in CustomTextField
final
maxLines int?
This will decide the minimum lines in CustomTextField
final
minLines int?
This will decide the minimum lines in CustomTextField
final
obscureText bool?
This will be the obscureText status in CustomTextField
final
obsecureCharacter String?
final
onChanged → (dynamic Function(String)?)
This is the on Change function of the CustomTextFile
final
onFieldSubmitted → (dynamic Function(String)?)
This is the onFieldSubmitted function of the CustomTextFile
final
onTap → (dynamic Function()?)
This will happen on tapping the CustomTextFile
final
prefix Widget?
This will be the suffixIcon of CustomTextField
final
prefixIcon Widget?
This will be the prefixIcon of CustomTextField
final
prefixStyle TextStyle?
final
prefixText String?
final
readOnly bool?
This will be the readOnlyState of CustomTextField
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCursor bool?
final
suffix Widget?
This will be the suffix of CustomTextField
final
suffixIcon Widget?
This will be the suffixIcon of CustomTextField
final
textCapitalization TextCapitalization?
final
textInputAction TextInputAction?
This will be the textInputAction of CustomTextField
final
validate → (String? Function(String?)?)
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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