FTextField.multiline constructor
const
FTextField.multiline({
- FTextFieldStyle? style,
- Widget? label,
- String? hint,
- Widget? description,
- TextMagnifierConfiguration? magnifierConfiguration,
- TextEditingController? controller,
- FocusNode? focusNode,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- TextCapitalization textCapitalization = TextCapitalization.sentences,
- TextAlign textAlign = TextAlign.start,
- TextAlignVertical? textAlignVertical,
- TextDirection? textDirection,
- bool autofocus = false,
- WidgetStatesController? statesController,
- bool obscureText = false,
- bool autocorrect = true,
- SmartDashesType? smartDashesType,
- SmartQuotesType? smartQuotesType,
- bool enableSuggestions = true,
- int? minLines = 4,
- int? maxLines,
- bool expands = false,
- bool readOnly = false,
- bool? showCursor,
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement,
- ValueChanged<
String> ? onChange, - VoidCallback? onEditingComplete,
- ValueChanged<
String> ? onSubmit, - AppPrivateCommandCallback? onAppPrivateCommand,
- List<
TextInputFormatter> ? inputFormatters, - bool enabled = true,
- bool? ignorePointers,
- bool enableInteractSelection = true,
- TextSelectionControls? selectionControls,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- MouseCursor? mouseCursor,
- ScrollPhysics? scrollPhysics,
- ScrollController? scrollController,
- Iterable<
String> ? autofillHints, - String? restorationId,
- bool scribbleEnabled = true,
- bool enableIMEPersonalizedLearning = true,
- ContentInsertionConfiguration? contentInsertionConfiguration,
- EditableTextContextMenuBuilder? contextMenuBuilder = _contextMenuBuilder,
- bool canRequestFocus = true,
- UndoHistoryController? undoController,
- SpellCheckConfiguration? spellCheckConfiguration,
- Widget? suffix,
- FormFieldSetter<
String> ? onSaved, - FormFieldValidator<
String> ? validator, - String? initialValue,
- AutovalidateMode? autovalidateMode,
- String? forceErrorText,
- Widget errorBuilder() = _errorBuilder,
- Key? key,
Creates a FTextField configured for multiline inputs.
The text field's height can be configured by adjusting minLines
. By default, the text field will expand every
time a new line is added. To limit the maximum height of the text field and make it scrollable, consider setting
maxLines
.
Implementation
const FTextField.multiline({
this.style,
this.label,
this.hint,
this.description,
this.magnifierConfiguration,
this.controller,
this.focusNode,
this.keyboardType,
this.textInputAction,
this.textCapitalization = TextCapitalization.sentences,
this.textAlign = TextAlign.start,
this.textAlignVertical,
this.textDirection,
this.autofocus = false,
this.statesController,
this.obscureText = false,
this.autocorrect = true,
this.smartDashesType,
this.smartQuotesType,
this.enableSuggestions = true,
this.minLines = 4,
this.maxLines,
this.expands = false,
this.readOnly = false,
this.showCursor,
this.maxLength,
this.maxLengthEnforcement,
this.onChange,
this.onEditingComplete,
this.onSubmit,
this.onAppPrivateCommand,
this.inputFormatters,
this.enabled = true,
this.ignorePointers,
this.enableInteractSelection = true,
this.selectionControls,
this.dragStartBehavior = DragStartBehavior.start,
this.mouseCursor,
this.scrollPhysics,
this.scrollController,
this.autofillHints,
this.restorationId,
this.scribbleEnabled = true,
this.enableIMEPersonalizedLearning = true,
this.contentInsertionConfiguration,
this.contextMenuBuilder = _contextMenuBuilder,
this.canRequestFocus = true,
this.undoController,
this.spellCheckConfiguration,
this.suffix,
this.onSaved,
this.validator,
this.initialValue,
this.autovalidateMode,
this.forceErrorText,
this.errorBuilder = _errorBuilder,
super.key,
});