GTFTextField class

Inheritance

Constructors

GTFTextField({Key? key, ValueChanged<String>? onChanged, ValueChanged<String>? onSubmitted, GestureTapCallback? onTap, VoidCallback? onEditingComplete, VoidCallback? onClear, TextEditingController? controller, FocusNode? focusNode, String? text, String? placeholder, String clearIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_clear.svg", String secretCloseIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_0.svg", String secretOpenIcon = "packages/gtech_flutter_ui/assets/svg/gtf_input_secret_1.svg", bool isEnabled = true, bool hideLine = false, bool hideClear = false, bool isSecret = false, int? maxLines = 1, double radius = 0, double? fontSize = GTFFont.title, double suffixIconMargin = 8, double cursorWidth = 1, double lineHeight = 0.5, Color? backgroundColor, Color? textColor = GTFColor.grey6, Color? textDisabledColor = GTFColor.grey6, Color? placeholderColor = GTFColor.grey3, Color? cursorColor = GTFColor.black, Color lineNormalColor = GTFColor.grey2, Color lineFocusedColor = GTFColor.yellowPrimary, Color lineDisabledColor = GTFColor.grey2, FontWeight? fontWeight = GTFFont.regular, TextAlign textAlign = TextAlign.start, List<TextInputFormatter>? inputFormatters, TextInputType? keyboardType, TextInputAction? textInputAction = TextInputAction.done, EdgeInsets? padding, EdgeInsets? contentPadding = const EdgeInsets.fromLTRB(0, 12, 8, 12), EdgeInsets? suffixIconPadding, Widget? suffixWidget})
const

Properties

backgroundColor Color?
final
clearIcon String
final
contentPadding EdgeInsets?
final
controller TextEditingController?
final
cursorColor Color?
final
cursorWidth double
final
focusNode FocusNode?
final
fontSize double?
final
fontWeight FontWeight?
final
hashCode int
The hash code for this object.
no setterinherited
hideClear bool
final
hideLine bool
final
inputFormatters List<TextInputFormatter>?
final
isEnabled bool
final
isSecret bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
lineDisabledColor Color
final
lineFocusedColor Color
final
lineHeight double
final
lineNormalColor Color
final
maxLines int?
final
onChanged ValueChanged<String>?
final
onClear VoidCallback?
final
onEditingComplete VoidCallback?
final
onSubmitted ValueChanged<String>?
final
onTap GestureTapCallback?
final
padding EdgeInsets?
final
placeholder String?
final
placeholderColor Color?
final
radius double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretCloseIcon String
final
secretOpenIcon String
final
suffixIconMargin double
final
suffixIconPadding EdgeInsets?
final
suffixWidget Widget?
final
text String?
final
textAlign TextAlign
final
textColor Color?
final
textDisabledColor Color?
final
textInputAction TextInputAction?
final

Methods

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