ModTextBox class

Inheritance

Constructors

ModTextBox({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 enableEnterAction = false, Future<void> enterOnPressed()?, bool showBorder = false, Color? backgroundColor, Color? borderColor, double borderWidth = 1.0, bool numberMode = false, ModTextBoxNumberButtonPosition numberButtonPosition = ModTextBoxNumberButtonPosition.leftRight, num? minValue, num? maxValue, num step = 1, int decimalPlaces = 0, IconData? incrementIcon, IconData? decrementIcon, Color? numberButtonColor, Color? numberButtonBackgroundColor})
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
decimalPlaces → int
Number of decimal places (0 for integers)
final
decrementIcon → IconData?
Custom icon for decrement button
final
enabled → bool?
final
enableEnterAction → bool
final
enterOnPressed → Future<void> Function()?
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
incrementIcon → IconData?
Custom icon for increment button
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
maxValue → num?
Maximum value for number mode
final
minLines → int?
final
minValue → num?
Minimum value for number mode
final
multiline → bool
final
numberButtonBackgroundColor → Color?
Background color for increment/decrement buttons
final
numberButtonColor → Color?
Color for increment/decrement buttons
final
numberButtonPosition → ModTextBoxNumberButtonPosition
Position of increment/decrement buttons (leftRight or topBottom)
final
numberMode → bool
Enables number mode with increment/decrement buttons
final
onChange → ValueChanged<String>?
final
onEditingComplete → VoidCallback?
final
onFieldSubmitted → ValueChanged<String>?
final
onSaved → FormFieldSetter<String>?
final
onTap → VoidCallback?
final
onTapAlwaysCalled → bool
final
onTapOutside → VoidCallback?
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
step → num
Step value for increment/decrement
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