MUIPrimaryInputField class

A Basic Input Text Field Widget provided by ModularUI

Inheritance

Constructors

MUIPrimaryInputField.new({Key? key, double widthFactor = 0.95, required String hintText, required TextEditingController controller, required Color filledColor, double borderRadius = 12, double borderWidth = 1.5, Color disabledBorderColor = Colors.grey, Color enabledBorderColor = Colors.black, Color cursorColor = Colors.grey, TextStyle textStyle = const TextStyle(), TextStyle hintStyle = const TextStyle(fontWeight: FontWeight.w400), bool isObscure = false, Icon? suffixIcon, Icon? prefixIcon, VoidCallback? suffixIconOnPressed, VoidCallback? prefixIconOnPressed})
const

Properties

borderRadius double
Border radius for Text field
final
borderWidth double
Border width
final
controller TextEditingController
Text editing controller
final
cursorColor Color
Cursor Color for text field
final
disabledBorderColor Color
Border color when text field is not selected
final
enabledBorderColor Color
Border color when text field is selected
final
filledColor Color
Filled Color for Text field
final
hashCode int
The hash code for this object.
no setterinherited
hintStyle TextStyle
hint style for text field
final
hintText String
Hint text for text field
final
isObscure bool
Is obscure ?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
prefixIcon Icon?
Icon for prefix icon in textfield
final
prefixIconOnPressed VoidCallback?
Function for prefixIcon
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffixIcon Icon?
Icon for suffix icon in textfield
final
suffixIconOnPressed VoidCallback?
Function for suffixIcon
final
textStyle TextStyle
Text style for text field
final
widthFactor double
A double value which gets multiplied with current screen width determines the width of text field
final

Methods

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