LiveTextField constructor

const LiveTextField({
  1. Key? key,
  2. required MutableCell<String> content,
  3. MutableCell<TextSelection>? selection,
  4. Object groupId = EditableText,
  5. FocusNode? focusNode,
  6. UndoHistoryController? undoController,
  7. InputDecoration? decoration = const InputDecoration(),
  8. TextInputType? keyboardType,
  9. TextInputAction? textInputAction,
  10. TextCapitalization textCapitalization = TextCapitalization.none,
  11. TextStyle? style,
  12. StrutStyle? strutStyle,
  13. TextAlign textAlign = TextAlign.start,
  14. TextAlignVertical? textAlignVertical,
  15. TextDirection? textDirection,
  16. bool readOnly = false,
  17. ToolbarOptions? toolbarOptions,
  18. bool? showCursor,
  19. bool autofocus = false,
  20. WidgetStatesController? statesController,
  21. String obscuringCharacter = '•',
  22. bool obscureText = false,
  23. bool autocorrect = true,
  24. SmartDashesType? smartDashesType,
  25. SmartQuotesType? smartQuotesType,
  26. bool enableSuggestions = true,
  27. int? maxLines = 1,
  28. int? minLines,
  29. bool expands = false,
  30. int? maxLength,
  31. MaxLengthEnforcement? maxLengthEnforcement,
  32. void onChanged(
    1. String
    )?,
  33. void onEditingComplete()?,
  34. void onSubmitted(
    1. String
    )?,
  35. void onAppPrivateCommand(
    1. String,
    2. Map<String, dynamic>
    )?,
  36. List<TextInputFormatter>? inputFormatters,
  37. ValueCell<bool?>? enabled,
  38. bool? ignorePointers,
  39. double cursorWidth = 2.0,
  40. double? cursorHeight,
  41. Radius? cursorRadius,
  42. bool? cursorOpacityAnimates,
  43. Color? cursorColor,
  44. Color? cursorErrorColor,
  45. BoxHeightStyle selectionHeightStyle = ui.BoxHeightStyle.tight,
  46. BoxWidthStyle selectionWidthStyle = ui.BoxWidthStyle.tight,
  47. Brightness? keyboardAppearance,
  48. EdgeInsets scrollPadding = const EdgeInsets.all(20.0),
  49. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  50. bool? enableInteractiveSelection,
  51. TextSelectionControls? selectionControls,
  52. void onTap()?,
  53. bool onTapAlwaysCalled = false,
  54. void onTapOutside(
    1. PointerDownEvent
    )?,
  55. MouseCursor? mouseCursor,
  56. Widget? buildCounter(
    1. BuildContext, {
    2. required int currentLength,
    3. required bool isFocused,
    4. required int? maxLength,
    })?,
  57. ScrollController? scrollController,
  58. ScrollPhysics? scrollPhysics,
  59. Iterable<String>? autofillHints = const <String>[],
  60. ContentInsertionConfiguration? contentInsertionConfiguration,
  61. Clip clipBehavior = Clip.hardEdge,
  62. String? restorationId,
  63. bool scribbleEnabled = true,
  64. bool enableIMEPersonalizedLearning = true,
  65. bool canRequestFocus = true,
  66. SpellCheckConfiguration? spellCheckConfiguration,
  67. TextMagnifierConfiguration? magnifierConfiguration,
})

Implementation

const LiveTextField({
  super.key,
  required this.content,
  this.selection,
  this.groupId = EditableText,
  this.focusNode,
  this.undoController,
  this.decoration = const InputDecoration(),
  this.keyboardType,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.start,
  this.textAlignVertical,
  this.textDirection,
  this.readOnly = false,
  this.toolbarOptions,
  this.showCursor,
  this.autofocus = false,
  this.statesController,
  this.obscuringCharacter = '•',
  this.obscureText = false,
  this.autocorrect = true,
  this.smartDashesType,
  this.smartQuotesType,
  this.enableSuggestions = true,
  this.maxLines = 1,
  this.minLines,
  this.expands = false,
  this.maxLength,
  this.maxLengthEnforcement,
  this.onChanged,
  this.onEditingComplete,
  this.onSubmitted,
  this.onAppPrivateCommand,
  this.inputFormatters,
  this.enabled,
  this.ignorePointers,
  this.cursorWidth = 2.0,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  this.cursorColor,
  this.cursorErrorColor,
  this.selectionHeightStyle = ui.BoxHeightStyle.tight,
  this.selectionWidthStyle = ui.BoxWidthStyle.tight,
  this.keyboardAppearance,
  this.scrollPadding = const EdgeInsets.all(20.0),
  this.dragStartBehavior = DragStartBehavior.start,
  this.enableInteractiveSelection,
  this.selectionControls,
  this.onTap,
  this.onTapAlwaysCalled = false,
  this.onTapOutside,
  this.mouseCursor,
  this.buildCounter,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints = const <String>[],
  this.contentInsertionConfiguration,
  this.clipBehavior = Clip.hardEdge,
  this.restorationId,
  this.scribbleEnabled = true,
  this.enableIMEPersonalizedLearning = true,
  this.canRequestFocus = true,
  this.spellCheckConfiguration,
  this.magnifierConfiguration,
});