ModTextBox class

Inheritance

Constructors

ModTextBox.new({Key? key, String? label, String? hint, String? value, ValueChanged<String>? onChange, TextEditingController? controller, List<TextInputFormatter>? inputFormatters, bool isPassword = false, bool readOnly = false, Widget? prefixIcon, Widget? suffixIcon, Widget? suffixButton, TextInputType? keyboardType, TextStyle? style, ModTextBoxLabelPosition labelPosition = ModTextBoxLabelPosition.top, bool floatingLabel = false, String? validator(String?)?, String? errorText, double? width, double borderRadius = 8.0, AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction, bool autocorrect = false, bool autofocus = false, Color? cursorColor, double? cursorHeight, bool? enabled, bool expands = false, FocusNode? focusNode, TextInputAction? textInputAction, int? maxLength, int? maxLines, int? minLines, TextAlign textAlign = TextAlign.start, GestureTapCallback? onTapOutside, VoidCallback? onEditingComplete, FormFieldSetter<String>? onSaved, GestureTapCallback? onTap, bool onTapAlwaysCalled = false, ValueChanged<String>? onFieldSubmitted, ModTextBoxSize size = ModTextBoxSize.md, double? fixedHeight, bool multiline = false, bool autoHeight = false, bool showBorder = false, Color? backgroundColor, Color? borderColor, double borderWidth = 1.0})
const

Properties

autocorrect bool
final
autofocus bool
final
autoHeight bool
final
autovalidateMode AutovalidateMode
final
backgroundColor Color?
final
borderColor Color?
final
borderRadius double
final
borderWidth double
final
controller TextEditingController?
final
cursorColor Color?
final
cursorHeight double?
final
enabled bool?
final
errorText String?
final
expands bool
final
fixedHeight double?
final
floatingLabel bool
final
focusNode FocusNode?
final
hashCode int
The hash code for this object.
no setterinherited
hint String?
final
inputFormatters List<TextInputFormatter>?
final
isPassword bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType?
final
label String?
final
labelPosition ModTextBoxLabelPosition
final
maxLength int?
final
maxLines int?
final
minLines int?
final
multiline bool
final
onChange ValueChanged<String>?
final
onEditingComplete VoidCallback?
final
onFieldSubmitted ValueChanged<String>?
final
onSaved FormFieldSetter<String>?
final
onTap GestureTapCallback?
final
onTapAlwaysCalled bool
final
onTapOutside GestureTapCallback?
final
prefixIcon Widget?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBorder bool
final
size ModTextBoxSize
final
style TextStyle?
final
suffixButton Widget?
final
suffixIcon Widget?
final
textAlign TextAlign
final
textInputAction TextInputAction?
final
validator String? Function(String?)?
final
value String?
final
width double?
final

Methods

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