TextArea constructor
const
TextArea({
- Key? key,
- String? label = 'Description',
- bool isRequired = false,
- int? characterLimit = 200,
- InputControlType type = InputControlType.gray,
- int lines = 4,
- int? minLines,
- IconData? leftIcon,
- Widget? leftIconWidget,
- String? prefix,
- Widget? prefixWidget,
- String placeholder = 'Enter description...',
- String? value,
- TextEditingController? controller,
- FocusNode? focusNode,
- String? suffix,
- Widget? suffixWidget,
- ButtonIconGhost? rightButton,
- bool isError = false,
- bool showErrorMessage = true,
- String errorMessage = 'Error Message',
- List<
String> ? errorMessages, - Widget? errorIconWidget,
- FormFieldValidator<
String> ? validator, - FormFieldSetter<
String> ? onSaved, - AutovalidateMode? autovalidateMode,
- bool enabled = true,
- bool readOnly = false,
- bool autofocus = false,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatters, - ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onTap,
Creates a TextArea multiline input instance.
Implementation
const TextArea({
super.key,
this.label = 'Description',
this.isRequired = false,
this.characterLimit = 200,
this.type = InputControlType.gray,
this.lines = 4,
this.minLines,
this.leftIcon,
this.leftIconWidget,
this.prefix,
this.prefixWidget,
this.placeholder = 'Enter description...',
this.value,
this.controller,
this.focusNode,
this.suffix,
this.suffixWidget,
this.rightButton,
this.isError = false,
this.showErrorMessage = true,
this.errorMessage = 'Error Message',
this.errorMessages,
this.errorIconWidget,
this.validator,
this.onSaved,
this.autovalidateMode,
this.enabled = true,
this.readOnly = false,
this.autofocus = false,
this.keyboardType,
this.inputFormatters,
this.onChanged,
this.onSubmitted,
this.onTap,
});