CustomInputField class

This is a custom input field to have common functionalities of the app

Inheritance

Constructors

CustomInputField({Key? key, String hintText = '', double height = 50, double width = 300, Color? iconColor, IconData? icon, Function? onTap, Function? onIconTap, ValueChanged<String>? value, String initialValue = '', Function? onSubmitted, bool isReadOnly = false, Widget? prefix, Color? inputFieldColor, TextStyle style = const TextStyle(fontSize: 15, fontWeight: FontWeight.normal), TextStyle hintStyle = const TextStyle(color: ColorConstants.darkGrey, fontSize: 15, fontWeight: FontWeight.normal)})

Properties

hashCode int
The hash code for this object.
no setterinherited
height double
sets the height of the input field.
final
hintStyle TextStyle
The style to use for the hintText.
final
hintText String
The string to display if the input field is empty.
final
icon IconData?
The trailing icon on the input field and calls the onIconTap or onTap when tapped.
final
iconColor Color?
The color to fill the icon.
final
initialValue String
A string to pre-populate the input field.
final
inputFieldColor Color?
background color of input field.
final
isReadOnly bool
makes the input field to be read only.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onIconTap Function?
defines the function to execute on tap on the icon.
final
onSubmitted Function?
defines the to execute on submit in the input field.
final
onTap Function?
defines the function to execute on tap on the input field.
final
prefix Widget?
this widget comes as prefix to input field.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle
The style to use for the text being edited. If null, defaults to the subtitle1 text style from the current Theme.
final
textController TextEditingController
getter/setter pair
value ValueChanged<String>?
The observable value of the input field.
final
width double
sets the width of the input field.
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