UIProTextField.multiline constructor

const UIProTextField.multiline({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? hint,
  4. String? label,
  5. String? errorText,
  6. String? helperText,
  7. IconData? prefixIcon,
  8. Widget? prefix,
  9. IconData? suffixIcon,
  10. Widget? suffix,
  11. bool enabled = true,
  12. bool readOnly = false,
  13. bool autofocus = false,
  14. int? maxLines = 5,
  15. int? minLines = 3,
  16. int? maxLength,
  17. List<TextInputFormatter>? inputFormatters,
  18. ValueChanged<String>? onChanged,
  19. VoidCallback? onEditingComplete,
  20. VoidCallback? onTap,
  21. FocusNode? focusNode,
  22. TextCapitalization textCapitalization = TextCapitalization.sentences,
  23. double? borderRadius,
  24. Color? backgroundColor,
  25. Color? borderColor,
  26. Color? focusedBorderColor,
  27. Color? errorBorderColor,
  28. EdgeInsets? contentPadding,
  29. TextStyle? textStyle,
  30. TextStyle? hintStyle,
  31. TextStyle? labelStyle,
  32. TextStyle? errorStyle,
  33. bool showCounter = true,
  34. double? borderWidth,
  35. bool animateFocus = true,
  36. UIProTextFieldVariant variant = UIProTextFieldVariant.outlined,
  37. bool validateNotEmpty = false,
  38. String emptyErrorMessage = "This field is required",
})

Creates a multiline text area.

Implementation

const UIProTextField.multiline({
  super.key,
  this.controller,
  this.hint,
  this.label,
  this.errorText,
  this.helperText,
  this.prefixIcon,
  this.prefix,
  this.suffixIcon,
  this.suffix,
  this.enabled = true,
  this.readOnly = false,
  this.autofocus = false,
  this.maxLines = 5,
  this.minLines = 3,
  this.maxLength,
  this.inputFormatters,
  this.onChanged,
  this.onEditingComplete,
  this.onTap,
  this.focusNode,
  this.textCapitalization = TextCapitalization.sentences,
  this.borderRadius,
  this.backgroundColor,
  this.borderColor,
  this.focusedBorderColor,
  this.errorBorderColor,
  this.contentPadding,
  this.textStyle,
  this.hintStyle,
  this.labelStyle,
  this.errorStyle,
  this.showCounter = true,
  this.borderWidth,
  this.animateFocus = true,
  this.variant = UIProTextFieldVariant.outlined,
  this.validateNotEmpty = false,
  this.emptyErrorMessage = "This field is required",
}) : isPassword = false,
     keyboardType = TextInputType.multiline,
     textInputAction = TextInputAction.newline,
     onSubmitted = null,
     obscuringCharacter = '•',
     fieldType = UIProTextFieldType.text,
     invalidEmailMessage = "Please enter a valid email",
     minPasswordLength = 6,
     shortPasswordMessage = "Password must be at least 6 characters";