TextArea constructor
const
TextArea({
- Key? key,
- bool expandableHeight = false,
- bool expandableWidth = false,
- double initialHeight = 100,
- double initialWidth = double.infinity,
- ValueChanged<
double> ? onHeightChanged, - ValueChanged<
double> ? onWidthChanged, - TextEditingController? controller,
- bool filled = false,
- String? placeholder,
- bool border = true,
- Widget? leading,
- Widget? trailing,
- EdgeInsetsGeometry? padding,
- ValueChanged<
String> ? onSubmitted, - VoidCallback? onEditingComplete,
- FocusNode? focusNode,
- VoidCallback? onTap,
- bool enabled = true,
- bool readOnly = false,
- bool obscureText = false,
- String obscuringCharacter = '•',
- String? initialValue,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- BorderRadiusGeometry? borderRadius,
- TextAlign textAlign = TextAlign.start,
- double minWidth = 100,
- double minHeight = 100,
- double maxWidth = double.infinity,
- double maxHeight = double.infinity,
- TextAlignVertical? textAlignVertical = TextAlignVertical.top,
- UndoHistoryController? undoController,
- ValueChanged<
String> ? onChanged, - Iterable<
String> ? autofillHints, - void onTapOutside(
- PointerDownEvent event
- List<
TextInputFormatter> ? inputFormatters, - TextStyle? style,
- EditableTextContextMenuBuilder? contextMenuBuilder,
- bool useNativeContextMenu = false,
- bool? isCollapsed,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- Clip clipBehavior = Clip.hardEdge,
- bool autofocus = false,
Implementation
const TextArea({
super.key,
this.expandableHeight = false,
this.expandableWidth = false,
this.initialHeight = 100,
this.initialWidth = double.infinity,
this.onHeightChanged,
this.onWidthChanged,
this.controller,
this.filled = false,
this.placeholder,
this.border = true,
this.leading,
this.trailing,
this.padding,
this.onSubmitted,
this.onEditingComplete,
this.focusNode,
this.onTap,
this.enabled = true,
this.readOnly = false,
this.obscureText = false,
this.obscuringCharacter = '•',
this.initialValue,
this.maxLength,
this.maxLengthEnforcement,
this.borderRadius,
this.textAlign = TextAlign.start,
this.minWidth = 100,
this.minHeight = 100,
this.maxWidth = double.infinity,
this.maxHeight = double.infinity,
this.textAlignVertical = TextAlignVertical.top,
this.undoController,
this.onChanged,
this.autofillHints,
this.onTapOutside,
this.inputFormatters,
this.style,
this.contextMenuBuilder,
this.useNativeContextMenu = false,
this.isCollapsed,
this.keyboardType,
this.textInputAction,
this.clipBehavior = Clip.hardEdge,
this.autofocus = false,
});