t×tecexpressby TeKOcloud
DEv0.7.1
Editors & selection / FLUTTER

TxTextArea.

Interactive preview

Multiline text input with a configurable row count.

TxTextArea

ParameterTypeDefaultMeaning
controllerTextEditingController?nullExternal text controller; the application disposes it.
initialValueString?nullStarting value in uncontrolled mode.
onChangedValueChanged<String>?nullCallback for changed; see the signature for arguments and return type.
onValueChangedValueChanged<TxValueChange<String>>?nullReports value; update controlled state in the callback.
labelString?nullLabel or accessible name.
placeholderString?nullHint for an empty input.
rowsint3Visible text rows.
disabledboolfalseDisables interaction.
readOnlyboolfalsePrevents value changes.
requiredboolfalseMarks a required input.
isValidbooltrueControls error presentation; does not perform validation.
validationMessageString'Bitte Eingabe prüfen.'Error message when isValid is false.
focusNodeFocusNode?nullExternal focus controller.
dart
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';

Widget example() {
  var text = '';
  return StatefulBuilder(
    builder: (context, setState) => TxTextArea(label: 'Notes', rows: 4, onChanged: (v) => setState(() => text = v)),
  );
}