TTextField.multiline constructor
const
TTextField.multiline({
- Key? key,
- String? labelText,
- required String hintText,
- required TextEditingController controller,
- required ValueChanged<
String> onChange, - ValueChanged<
String> ? onSubmitted, - bool enableInstantDelete = false,
- int? maxLines,
- int minLines = 4,
- TextInputType textInputType = TextInputType.multiline,
- Widget? leading,
- bool? enabled,
- bool readOnly = false,
- Color? borderColor,
- Color? focusedBorderColor,
- Widget? actionWidget,
- Color? hintColor,
- bool? autoFocus,
- FocusNode? focusNode,
- String? errorMessage,
- String? description,
- List<
TextInputFormatter> ? inputFormatter, - double? height,
- Color? backgroundColor,
- String? helperText,
- VoidCallback? onEditingComplete,
- bool obscureText = false,
- String? counterText,
- Widget? passwordVisibilityIcon,
- Widget? passwordVisibilityOffIcon,
- bool showPasswordToggle = true,
- Widget? emailIcon,
- bool showEmailIcon = true,
- VoidCallback? onLeadingPressed,
- VoidCallback? onActionPressed,
Implementation
const TTextField.multiline({
super.key,
this.labelText,
required this.hintText,
required this.controller,
required this.onChange,
this.onSubmitted,
this.enableInstantDelete = false,
this.maxLines,
this.minLines = 4,
this.textInputType = TextInputType.multiline,
this.leading,
this.enabled,
this.readOnly = false,
this.borderColor,
this.focusedBorderColor,
this.actionWidget,
this.hintColor,
this.autoFocus,
this.focusNode,
this.errorMessage,
this.description,
this.inputFormatter,
this.height,
this.backgroundColor,
this.helperText,
this.onEditingComplete,
this.obscureText = false,
this.counterText,
this.passwordVisibilityIcon,
this.passwordVisibilityOffIcon,
this.showPasswordToggle = true,
this.emailIcon,
this.showEmailIcon = true,
this.onLeadingPressed,
this.onActionPressed,
}) : type = TextFieldType.multiline;