Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
TextArea
const TextArea({
super.key,
this.size,
required this.controller,
this.focusNode,
this.textInputAction = TextInputAction.newline,
this.textCapitalization = TextCapitalization.none,
this.autocorrect = true,
this.onEditingComplete,
this.onChanged,
this.onSubmitted,
this.placeholder = 'Enter text...',
this.label,
this.description,
this.errorText,
this.backgroundColor,
this.foregroundColor,
this.placeholderColor,
this.borderColor,
this.focusColor,
this.errorColor,
this.borderRadius,
this.padding,
this.fontSize,
this.minLines = 3,
this.maxLines = 6,
this.maxLength,
this.maxLengthEnforcement = MaxLengthEnforcement.enforced,
this.inputFormatters,
this.autofillHints,
this.enabled = true,
this.readOnly = false,
this.autofocus = false,
this.showCounter = false,
this.expand = false,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
size | ComponentSize? | No | null |
controller | TextEditingController | Yes | — |
focusNode | FocusNode? | No | null |
textInputAction | TextInputAction | No | TextInputAction.newline |
textCapitalization | TextCapitalization | No | TextCapitalization.none |
autocorrect | bool | No | true |
onEditingComplete | VoidCallback? | No | null |
onChanged | ValueChanged<String>? | No | null |
onSubmitted | ValueChanged<String>? | No | null |
placeholder | String | No | 'Enter text...' |
label | String? | No | null |
description | String? | No | null |
errorText | String? | No | null |
backgroundColor | Color? | No | null |
foregroundColor | Color? | No | null |
placeholderColor | Color? | No | null |
borderColor | Color? | No | null |
focusColor | Color? | No | null |
errorColor | Color? | No | null |
borderRadius | double? | No | null |
padding | EdgeInsetsGeometry? | No | null |
fontSize | double? | No | null |
minLines | int | No | 3 |
maxLines | int? | No | 6 |
maxLength | int? | No | null |
maxLengthEnforcement | MaxLengthEnforcement | No | MaxLengthEnforcement.enforced |
inputFormatters | List<TextInputFormatter>? | No | null |
autofillHints | Iterable<String>? | No | null |
enabled | bool | No | true |
readOnly | bool | No | false |
autofocus | bool | No | false |
showCounter | bool | No | false |
expand | bool | No | false |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/forms/text_area/text_area.dart
This reference is generated from the TextArea declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

