Text area
Several lines of payment support context.



PaymentTextArea(label: 'Notes');Behavior
Section titled “Behavior”minLines and maxLines set the height; maxLines: null lets the field grow. Enter inserts a newline; Command or Control plus Enter submits. A character counter announces remaining space near the limit.
Variants
Section titled “Variants”Variants: small, medium, large; multiline.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Problem description | medium | Keep the privacy instruction visible and cap reports at 500 characters. |
Use Text field for a short single-line value.
States
Section titled “States”Default, focused, disabled and error. Errors include an icon, text and an edge. Selection controls support hardware keyboards.
Do and don’t
Section titled “Do and don’t”Do: Keep the privacy instruction visible and cap reports at 500 characters.
Don’t: Log free text or send the report draft to analytics.
Content guidelines
Section titled “Content guidelines”Use short, specific labels and explain how to correct an error.
Accessibility
Section titled “Accessibility”Input text is 16 dp. Legends precede fields in reading order. Labels and errors stay in semantics when visually hidden. Pickers restore focus.
The report example never logs free text. Only category and character count cross the host boundary; the controller is disposed on close.
In the example app
Section titled “In the example app”

Customization
Section titled “Customization”Fill, resting outline, corners and input typography come from the field-family PaymentFieldTheme. See Text field customization for the adoption order, supported properties and the states the kit keeps.
PaymentTextArea
class PaymentTextArea extends StatefulWidget · lib/src/controls/text_field.dart
Several lines of free text. Enter inserts a newline; modified Enter submits.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | label for this field. |
controller: | TextEditingController? | — | controller for this field. |
initialValue: | String? | — | initialValue for this field. |
focusNode: | FocusNode? | — | focusNode for this field. |
hint: | String? | — | hint for this field. |
description: | String? | — | description for this field. |
errorText: | String? | — | errorText for this field. |
validator: | FormFieldValidator<String>? | — | validator for this field. |
required: | bool | false | required for this field. |
hiddenElements: | Set<PaymentFieldPart> | const {} | hiddenElements for this field. |
minLines: | int | 3 | minLines for this field. |
maxLines: | int? | 8 | maxLines for this field. |
maxLength: | int? | — | maxLength for this field. |
size: | PaymentSize | PaymentSize.medium | size for this field. |
onChanged: | ValueChanged<String>? | — | onChanged for this field. |
onSubmitted: | ValueChanged<String>? | — | onSubmitted for this field. |
enabled: | bool | true | enabled for this field. |
readOnly: | bool | false | readOnly for this field. |