AdeptTextField class

A customizable text field widget,

Inheritance

Constructors

AdeptTextField.new({Key? key, AdeptTextFieldTheme? theme, required TextEditingController txtCon, String label = '', String hint = "", bool isHideText = false, bool isNumber = false, int maxLine = 1, bool isCapitalLetter = false, int? maxLen, bool isCount = false, double countHeight = 15, FocusNode? focusNode, bool isEnable = true, void onChanged(String)?, void onFieldSubmmited(String)?, bool isRequired = false})
Constructor allows you to define styling and value properties.

Properties

countHeight double
/
getter/setter pair
focusNode FocusNode?
Focus node to manage the focus state of the text field.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hint String
Hint text displayed inside the text field.
getter/setter pair
isCapitalLetter bool
Whether to convert input text to capital letters.
getter/setter pair
isCount bool
getter/setter pair
isEnable bool
Whether the text field is enabled or disabled.
getter/setter pair
isHideText bool
Whether to hide the text (e.g. for passwords).
getter/setter pair
isNumber bool
Whether the text field should accept only numbers.
getter/setter pair
isRequired bool
getter/setter pair
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
Label displayed above the text field.
getter/setter pair
maxLen int?
Maximum number of characters allowed in the input.
getter/setter pair
maxLine int
Maximum number of lines the text field can span.
getter/setter pair
onChanged ↔ void Function(String)?
Callback triggered when the text changes.
getter/setter pair
onFieldSubmmited ↔ void Function(String)?
Callback triggered when the user submits the field.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme AdeptTextFieldTheme
AdeptTextFieldTheme Theme settings for the text field appearance.
getter/setter pair
txtCon TextEditingController
Controller for managing the text being edited.
getter/setter pair

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, 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