FTextField.multiline constructor

const FTextField.multiline({
  1. FTextFieldStyle? style,
  2. Widget? label,
  3. String? hint,
  4. Widget? description,
  5. TextMagnifierConfiguration? magnifierConfiguration,
  6. TextEditingController? controller,
  7. FocusNode? focusNode,
  8. TextInputType? keyboardType,
  9. TextInputAction? textInputAction,
  10. TextCapitalization textCapitalization = TextCapitalization.sentences,
  11. TextAlign textAlign = TextAlign.start,
  12. TextAlignVertical? textAlignVertical,
  13. TextDirection? textDirection,
  14. bool autofocus = false,
  15. WidgetStatesController? statesController,
  16. bool obscureText = false,
  17. bool autocorrect = true,
  18. SmartDashesType? smartDashesType,
  19. SmartQuotesType? smartQuotesType,
  20. bool enableSuggestions = true,
  21. int? minLines = 4,
  22. int? maxLines,
  23. bool expands = false,
  24. bool readOnly = false,
  25. bool? showCursor,
  26. int? maxLength,
  27. MaxLengthEnforcement? maxLengthEnforcement,
  28. ValueChanged<String>? onChange,
  29. VoidCallback? onEditingComplete,
  30. ValueChanged<String>? onSubmit,
  31. AppPrivateCommandCallback? onAppPrivateCommand,
  32. List<TextInputFormatter>? inputFormatters,
  33. bool enabled = true,
  34. bool? ignorePointers,
  35. bool enableInteractSelection = true,
  36. TextSelectionControls? selectionControls,
  37. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  38. MouseCursor? mouseCursor,
  39. ScrollPhysics? scrollPhysics,
  40. ScrollController? scrollController,
  41. Iterable<String>? autofillHints,
  42. String? restorationId,
  43. bool scribbleEnabled = true,
  44. bool enableIMEPersonalizedLearning = true,
  45. ContentInsertionConfiguration? contentInsertionConfiguration,
  46. EditableTextContextMenuBuilder? contextMenuBuilder = _contextMenuBuilder,
  47. bool canRequestFocus = true,
  48. UndoHistoryController? undoController,
  49. SpellCheckConfiguration? spellCheckConfiguration,
  50. Widget? suffix,
  51. FormFieldSetter<String>? onSaved,
  52. FormFieldValidator<String>? validator,
  53. String? initialValue,
  54. AutovalidateMode? autovalidateMode,
  55. String? forceErrorText,
  56. Widget errorBuilder(
    1. BuildContext,
    2. String
    ) = _errorBuilder,
  57. 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,
});