InputField class

Inheritance

Constructors

InputField({Key? key, required TextEditingController controller, required InputType type, required String label, String? infoText, bool? info, String? initialValue, bool readOnly = false, bool isDisabled = false, bool isRequired = false, bool charCount = false, bool editable = false, String? innerLabel, String? helpText, TooltipTriggerMode triggerMode = TooltipTriggerMode.tap, bool preferToolTipBelow = false, IconData? suffixIcon, TextInputType keyboardType = TextInputType.text, void onError(String?)?, List<Validator>? validations, void onChange(String)?, String? errorMessage, List<TextInputFormatter>? inputFormatters, TextAreaScroll textAreaScroll = TextAreaScroll.smart, String? suffixText, String? prefixText, DateTime? initialDate, DateTime? lastDate, DateTime? firstDate, void onSuffixTap(String)?, int step = 1, int minValue = 0, int maxValue = 100})
const

Properties

charCount bool
final
controller TextEditingController
final
editable bool
final
errorMessage String?
final
firstDate DateTime?
final
hashCode int
The hash code for this object.
no setterinherited
helpText String?
final
info bool?
final
infoText String?
final
initialDate DateTime?
specifically for date component
final
initialValue String?
final
innerLabel String?
final
inputFormatters List<TextInputFormatter>?
final
isDisabled bool
final
isRequired bool
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
final
label String
final
lastDate DateTime?
final
maxValue int
Maximum allowed value (used for specific input types like numeric).
final
minValue int
Minimum allowed value (used for specific input types like numeric).
final
onChange → (void Function(String)?)
final
onError → (void Function(String?)?)
final
onSuffixTap → (void Function(String)?)
final
preferToolTipBelow bool
final
prefixText String?
final
readOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
step int
Step value (used for specific input types like numeric).
final
suffixIcon IconData?
final
suffixText String?
final
textAreaScroll TextAreaScroll
final
triggerMode TooltipTriggerMode
final
type InputType
final
validations List<Validator>?
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}) 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