QuillHtmlEditor constructor
QuillHtmlEditor({
- String? text,
- required QuillEditorController controller,
- required double minHeight,
- bool isEnabled = true,
- dynamic onTextChanged()?,
- Color backgroundColor = Colors.white,
- String? hintText = 'Start typing something amazing',
- dynamic onFocusChanged()?,
- VoidCallback? onEditorCreated,
- dynamic onSelectionChanged()?,
- EdgeInsets? padding = EdgeInsets.zero,
- EdgeInsets? hintTextPadding = EdgeInsets.zero,
- TextAlign? hintTextAlign = TextAlign.start,
- dynamic onEditorResized()?,
- dynamic onEditingComplete()?,
- bool? ensureVisible = false,
- LoadingBuilder? loadingBuilder,
- InputAction? inputAction = InputAction.newline,
- bool? autoFocus = false,
- TextStyle? textStyle = const TextStyle(fontStyle: FontStyle.normal, fontSize: 20.0, color: Colors.black87, fontWeight: FontWeight.normal),
- 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);