XTextFormFieldWithLabel constructor

XTextFormFieldWithLabel({
  1. CrossAxisAlignment? crossAxisAlignment,
  2. String? label = "",
  3. EdgeInsets? marginContainerText,
  4. TextEditingController? controller,
  5. TextStyle? labelStyle,
  6. TextStyle? textStyle,
  7. TextStyle? hintStyle,
  8. TextAlign? textAlign,
  9. int? flexTextContainer,
  10. int? maxLenght,
  11. Color? colorBorder,
  12. bool? readOnlyFormField = false,
  13. Alignment? alignment,
  14. VoidCallback? onEditingComplete,
  15. GestureTapCallback? onTap,
  16. TextAlignVertical? textAlignVertical,
  17. Alignment? alignmentLabel,
  18. IconData? icon,
  19. FormFieldValidator<String>? validator,
  20. AutovalidateMode? autovalidateMode,
  21. ValueChanged<String>? onChanged,
  22. bool? autovalidate,
  23. List<TextInputFormatter>? inputFormatters,
  24. InputDecoration? decoration,
  25. int? minLines,
  26. int? maxLines,
  27. bool? expands = false,
  28. dynamic onPressed()?,
  29. TextInputType? keyboardType,
  30. String? initialValue = "",
  31. FocusNode? focusNode,
  32. int? flexLabelContainer,
  33. dynamic onFieldSubmitted(
    1. String
    )?,
  34. 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.',
      );