VooTextField class

Text field molecule that composes atoms to create a complete text input field Extends VooFieldBase to inherit all common field functionality

Inheritance
Implemented types
Implementers

Constructors

VooTextField.new({Key? key, required String name, String? label, Widget? labelWidget, String? hint, String? helper, String? placeholder, String? initialValue, bool enabled = true, bool readOnly = false, List<VooValidationRule<String>>? validators, ValueChanged<String?>? onChanged, List<Widget>? actions, Widget? prefixIcon, Widget? suffixIcon, int? gridColumns, String? error, bool showError = true, VooFieldLayout layout = VooFieldLayout.standard, bool isHidden = false, double? minWidth, double? maxWidth, double? minHeight, double? maxHeight, TextEditingController? controller, FocusNode? focusNode, TextInputType keyboardType = TextInputType.text, TextInputAction textInputAction = TextInputAction.next, List<TextInputFormatter>? inputFormatters, bool obscureText = false, bool enableSuggestions = true, bool autocorrect = true, int? maxLines = 1, int? minLines, int? maxLength, bool expands = false, TextCapitalization textCapitalization = TextCapitalization.none, VoidCallback? onEditingComplete, ValueChanged<String>? onSubmitted, bool autofocus = false})
const

Properties

actions List<Widget>?
finalinherited
autocorrect bool
final
autofocus bool
final
controller TextEditingController?
final
enabled bool
finalinherited
enableSuggestions bool
final
error String?
finalinherited
expands bool
final
focusNode FocusNode?
final
gridColumns int?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
helper String?
finalinherited
hint String?
finalinherited
initialValue String?
The initial value of the field
finalinherited
inputFormatters List<TextInputFormatter>?
final
isHidden bool
Whether this field should be hidden
finalinherited
isRequired bool
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType TextInputType
final
label String?
Optional label for the field
finalinherited
labelWidget Widget?
Custom widget to use instead of the default label
finalinherited
layout VooFieldLayout
Layout configuration for the field
finalinherited
maxHeight double?
Optional maximum height for the field
finalinherited
maxLength int?
final
maxLines int?
final
maxWidth double?
Optional maximum width for the field
finalinherited
minHeight double?
Optional minimum height for the field
finalinherited
minLines int?
final
minWidth double?
Optional minimum width for the field
finalinherited
name String
Unique name/id for the field
finalinherited
obscureText bool
final
onChanged ValueChanged<String?>?
finalinherited
onEditingComplete VoidCallback?
final
onSubmitted ValueChanged<String>?
final
placeholder String?
finalinherited
prefixIcon Widget?
finalinherited
readOnly bool
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showError bool
finalinherited
suffixIcon Widget?
finalinherited
textCapitalization TextCapitalization
final
textInputAction TextInputAction
final
validators List<VooValidationRule<String>>?
finalinherited

Methods

applyInputHeightConstraints(Widget input) Widget
Helper method to apply height constraints to input widgets Individual fields should use this for their input controls
inherited
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
buildError(BuildContext context) Widget
Builds just the error widget
inherited
buildFieldContainer(BuildContext context, Widget child) Widget
Builds the field container with standard decoration Note: Only width constraints are applied at container level Height constraints should be applied by individual fields to their input widgets
inherited
buildHelper(BuildContext context) Widget
Builds just the helper widget
inherited
buildLabel(BuildContext context) Widget
Builds just the label widget (deprecated, use buildLabelWithActions)
inherited
buildLabelWithActions(BuildContext context) Widget
Builds the label with actions aligned to the right
inherited
buildWithActions(BuildContext context, Widget child) Widget
Builds the field with actions Note: Actions are now added to the label row in buildLabelWithActions
inherited
buildWithError(BuildContext context, Widget child) Widget
Builds the field with error display
inherited
buildWithHelper(BuildContext context, Widget child) Widget
Builds the field with helper text
inherited
buildWithLabel(BuildContext context, Widget child) Widget
Builds the field with label if provided
inherited
copyWith({String? initialValue, String? label, VooFieldLayout? layout, String? name, bool? readOnly}) VooTextField
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
getEffectiveLoading(BuildContext context) bool
Get effective loading state from form-level configuration
inherited
getEffectiveReadOnly(BuildContext context) bool
Get effective readonly state considering form-level configuration
inherited
getFieldError(BuildContext context) String?
Get the current error for this field from the controller or use the field's error
inherited
getFieldPadding(BuildContext context) EdgeInsets
Get responsive padding based on screen size
inherited
getInputDecoration(BuildContext context) InputDecoration
Standard decoration for input fields
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
validate(String? value) String?
Validates the field value
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited