QuillHtmlEditor constructor

QuillHtmlEditor({
  1. String? text,
  2. required QuillEditorController controller,
  3. required double minHeight,
  4. bool isEnabled = true,
  5. dynamic onTextChanged(
    1. String
    )?,
  6. Color backgroundColor = Colors.white,
  7. String? hintText = 'Start typing something amazing',
  8. dynamic onFocusChanged(
    1. bool
    )?,
  9. VoidCallback? onEditorCreated,
  10. dynamic onSelectionChanged(
    1. SelectionModel
    )?,
  11. EdgeInsets? padding = EdgeInsets.zero,
  12. EdgeInsets? hintTextPadding = EdgeInsets.zero,
  13. TextAlign? hintTextAlign = TextAlign.start,
  14. dynamic onEditorResized(
    1. double
    )?,
  15. dynamic onEditingComplete(
    1. String
    )?,
  16. bool? ensureVisible = false,
  17. LoadingBuilder? loadingBuilder,
  18. InputAction? inputAction = InputAction.newline,
  19. bool? autoFocus = false,
  20. TextStyle? textStyle = const TextStyle(fontStyle: FontStyle.normal, fontSize: 20.0, color: Colors.black87, fontWeight: FontWeight.normal),
  21. TextStyle? hintTextStyle = const TextStyle(fontStyle: FontStyle.normal, fontSize: 20.0, color: Colors.black87, fontWeight: FontWeight.normal),
})

QuillHtmlEditor widget to display the quill editor, pass the controller to access the editor methods

Implementation

QuillHtmlEditor({
  this.text,
  required this.controller,
  required this.minHeight,
  this.isEnabled = true,
  this.onTextChanged,
  this.backgroundColor = Colors.white,
  this.hintText = 'Start typing something amazing',
  this.onFocusChanged,
  this.onEditorCreated,
  this.onSelectionChanged,
  this.padding = EdgeInsets.zero,
  this.hintTextPadding = EdgeInsets.zero,
  this.hintTextAlign = TextAlign.start,
  this.onEditorResized,
  this.onEditingComplete,
  this.ensureVisible = false,
  this.loadingBuilder,
  this.inputAction = InputAction.newline,
  this.autoFocus = false,
  this.textStyle = const TextStyle(
    fontStyle: FontStyle.normal,
    fontSize: 20.0,
    color: Colors.black87,
    fontWeight: FontWeight.normal,
  ),
  this.hintTextStyle = const TextStyle(
    fontStyle: FontStyle.normal,
    fontSize: 20.0,
    color: Colors.black87,
    fontWeight: FontWeight.normal,
  ),
}) : super(key: controller._editorKey);