XTextFormFieldWithLabel constructor
XTextFormFieldWithLabel({
- CrossAxisAlignment? crossAxisAlignment,
- String? label = "",
- EdgeInsets? marginContainerText,
- TextEditingController? controller,
- TextStyle? labelStyle,
- TextStyle? textStyle,
- TextStyle? hintStyle,
- TextAlign? textAlign,
- int? flexTextContainer,
- int? maxLenght,
- Color? colorBorder,
- bool? readOnlyFormField = false,
- Alignment? alignment,
- VoidCallback? onEditingComplete,
- GestureTapCallback? onTap,
- TextAlignVertical? textAlignVertical,
- Alignment? alignmentLabel,
- IconData? icon,
- FormFieldValidator<
String> ? validator, - AutovalidateMode? autovalidateMode,
- ValueChanged<
String> ? onChanged, - bool? autovalidate,
- List<
TextInputFormatter> ? inputFormatters, - InputDecoration? decoration,
- int? minLines,
- int? maxLines,
- bool? expands = false,
- dynamic onPressed()?,
- TextInputType? keyboardType,
- String? initialValue = "",
- FocusNode? focusNode,
- int? flexLabelContainer,
- dynamic onFieldSubmitted()?,
- String? hintText = '',
Implementation
XTextFormFieldWithLabel({
this.crossAxisAlignment,
this.label = "",
this.marginContainerText,
this.controller,
this.labelStyle,
this.textStyle,
this.hintStyle,
this.textAlign,
this.flexTextContainer,
this.maxLenght,
this.colorBorder,
this.readOnlyFormField = false,
this.alignment,
this.onEditingComplete,
this.onTap,
this.textAlignVertical,
this.alignmentLabel,
this.icon,
this.validator,
this.autovalidateMode,
this.onChanged,
this.autovalidate,
this.inputFormatters,
this.decoration,
this.minLines,
this.maxLines,
this.expands = false,
this.onPressed,
this.keyboardType,
this.initialValue = "",
this.focusNode,
this.flexLabelContainer,
this.onFieldSubmitted,
this.hintText = '',
}) : assert(maxLines == null || maxLines > 0),
assert(expands != null),
assert(
!expands! || (maxLines == null && minLines == null),
'minLines e MxLines devono essere null quando expands รจ true.',
);