HtmlEditor class

Inheritance

Constructors

HtmlEditor({Key? key, EditorController? controller, dynamic onChange(String content, double height)?, dynamic onFocus()?, dynamic onBlur()?, double minHeight = 300.0, EdgeInsets padding = EdgeInsets.zero, bool autoAdjustScroll = false, bool flexibleHeight = false, String backgroundColorCssCode = "#ffffff", String placeholder = "Edit text", String? initialText, bool printWebViewLog = false, String webViewTitle = "Editor", bool useAndroidHybridComposition = false, bool showLoadingWheel = false, double scaleFactor = 1.0, InAppWebViewGroupOptions? webViewOptions})
Creates a HtmlEditor.

Properties

autoAdjustScroll bool
Adjust scroll so new lines don't go below keyboard.
final
backgroundColorCssCode String
Background color for editor in css.
final
controller EditorController
Controller for controlling underlying webview and parent's scroll controller.
latefinal
flexibleHeight bool
Whether widget will be flexible in height with respect to content.
final
hashCode int
The hash code for this object.
no setterinherited
initialText String?
Initial text for editor.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minHeight double
Minimum initial height for editor.
final
onBlur → (dynamic Function()?)
Call when editor loses focus.
final
onChange → (dynamic Function(String content, double height)?)
Call when editor contents change.
final
onFocus → (dynamic Function()?)
Call when editor gains focus.
final
padding EdgeInsets
Padding for editor
final
placeholder String
Placeholder (hint) for editor.
final
printWebViewLog bool
Whether to print webview console logs to debugger.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleFactor double
Content scale factor for this web view
final
showLoadingWheel bool
Whether to stack a loading wheel on top while the editor is being loaded.
final
useAndroidHybridComposition bool
Enable Android hybrid composition.
final
webViewOptions → InAppWebViewGroupOptions?
Custom webview options
final
webViewTitle String
Page title for web view.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() HtmlEditorState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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