TUIInputField class

TUIInputField is a text input field that allows users to enter text.

Example:

TUIInputField(
  hintText: 'Hint Text',
  labelText: 'Label',
  prefixText: 'Prefix',
  suffixText: 'Suffix',
  prefixIcon: Icons.add,
  suffixIcon: Icons.remove,
  obscureText: true,
  controller: TextEditingController(),
  keyboardType: TextInputType.text,
  textInputAction: TextInputAction.done,
  onChanged: (value) {},
  onEditingComplete: () {},
  onSubmitted: (value) {},
)
Inheritance

Constructors

TUIInputField({Key? key, bool enabled = true, bool readOnly = false, String? hintText, String? labelText = 'Label', String? errorText, String? helperText, String? prefixText, String? suffixText, TextAlign textAlign = TextAlign.start, TextAlignVertical? textAlignVertical = TextAlignVertical.center, TextCapitalization textCapitalization = TextCapitalization.none, TextDirection? textDirection = TextDirection.ltr, int? maxLines = 1, int? minLines, bool expands = false, int? maxLength, Icon? prefixIcon, Color? prefixIconColor = TUIDefaultColors.inputText, Icon? suffixIcon, Color? suffixIconColor = TUIDefaultColors.inputText, bool obscureText = false, String obscuringCharacter = '*', TextEditingController? controller, TextInputType? keyboardType, TextInputAction? textInputAction, void onChanged(String)?, void onEditingComplete()?, void onSubmitted(String)?, void onTap()?})
const

Properties

controller TextEditingController?
final
enabled bool
final
errorText String?
final
expands bool
final
hashCode int
The hash code for this object.
no setterinherited
helperText String?
final
hintText String?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
labelText String?
final
maxLength int?
final
maxLines int?
final
minLines int?
final
obscureText bool
final
obscuringCharacter String
final
onChanged → void Function(String)?
final
onEditingComplete → void Function()?
final
onSubmitted → void Function(String)?
final
onTap → void Function()?
final
prefixIcon Icon?
final
prefixIconColor Color?
final
prefixText String?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixIcon Icon?
final
suffixIconColor Color?
final
suffixText String?
final
textAlign TextAlign
final
textAlignVertical TextAlignVertical?
final
textCapitalization TextCapitalization
final
textDirection TextDirection?
final
textInputAction TextInputAction?
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, 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