Skip to content
Get started
Menu
Get started

Text area

Several lines of payment support context.

Problem description, notes and internal notes fields with validation, read-only and disabled states.Problem description, notes and internal notes fields with validation, read-only and disabled states.
Text area
Problem description, notes and internal notes fields with validation, read-only and disabled states at 200 percent text.
200% text
example/lib/screens/gallery_forms.dart
PaymentTextArea(label: 'Notes');

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: small, medium, large; multiline.

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.

Default, focused, disabled and error. Errors include an icon, text and an edge. Selection controls support hardware keyboards.

Do: Keep the privacy instruction visible and cap reports at 500 characters.

Don’t: Log free text or send the report draft to analytics.

Use short, specific labels and explain how to correct an error.

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.

Example report problem screen with synthetic dataExample report problem screen with synthetic data
Example: report problem

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.

ParameterTypeDefaultDescription
label:requiredString—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:boolfalserequired for this field.
hiddenElements:Set<PaymentFieldPart>const {}hiddenElements for this field.
minLines:int3minLines for this field.
maxLines:int?8maxLines for this field.
maxLength:int?—maxLength for this field.
size:PaymentSizePaymentSize.mediumsize for this field.
onChanged:ValueChanged<String>?—onChanged for this field.
onSubmitted:ValueChanged<String>?—onSubmitted for this field.
enabled:booltrueenabled for this field.
readOnly:boolfalsereadOnly for this field.