HtmlEditorOptions class

Options class for the html editor.

Constructors

HtmlEditorOptions({bool autoAdjustHeight = true, bool adjustHeightForKeyboard = true, bool? darkMode, BoxDecoration decoration = const BoxDecoration(borderRadius: BorderRadius.all(Radius.circular(4)), border: Border.fromBorderSide(BorderSide(color: const Color(0xffececec), width: 1))), String? filePath, double height = 380, bool shouldEnsureVisible = false, bool showBottomToolbar = true})
const

Properties

adjustHeightForKeyboard bool
The editor will automatically adjust its height when the keyboard is active to prevent the keyboard overlapping the editor.
final
autoAdjustHeight bool
The editor will automatically adjust its height once the page is loaded to ensure there is no vertical scrolling or empty space. It will only perform the adjustment when the summernote editor is the loaded page.
final
darkMode bool?
Sets the editor to dark mode. null - switches with system, false - always light, true - always dark.
final
decoration BoxDecoration
The BoxDecoration to use around the Html editor. By default, the widget uses a thin, dark, rounded rectangle border around the widget.
final
filePath String?
Specify the file path to your custom html editor code.
final
hashCode int
The hash code for this object.
no setterinherited
height double
Sets the height of the Html editor space. It does not take the toolbar for the editor into account.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldEnsureVisible bool
Specifies whether the widget should scroll to reveal the HTML editor when it is focused or the text content is changed. See the README examples for the best way to implement this.
final
showBottomToolbar bool
Specifies whether the bottom toolbar for picking an image or copy/pasting is shown on the widget.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited