flutter_smart_editor library

A pure Flutter rich text HTML editor.

No WebView, no JavaScript — built entirely with Dart and Flutter.

Classes

BlockNode
Abstract base class for block-level nodes in the document.
Document
The root document model.
HeadingNode
A heading block (<h1> through <h6>)
HorizontalRuleNode
A horizontal rule block (<hr>).
ImageNode
An image block (<img>).
ListItemNode
A list item block (<li>) inside an ordered or unordered list.
ParagraphNode
A paragraph block (<p>)
SearchMatch
Represents a single text search match within a document block or table cell.
SearchOptions
Configuration options for document search in SmartEditor.
SearchState
Represents the complete state of the Find & Replace feature.
SmartColorButtons
Color picker buttons (Text color, Highlight color)
SmartEditor
A pure Flutter rich text HTML editor widget.
SmartEditorController
The public controller for SmartEditor.
SmartEditorSettings
Comprehensive settings for the editor's behavior, style, and events.
SmartFontButtons
Font formatting buttons (Bold, Italic, Underline, Strikethrough, etc.)
SmartFontFamilyButtons
Font family picker dropdown
SmartHrStyle
Styling configuration for the <hr> horizontal rule block.
SmartInsertButtons
Insert buttons (Link, Image, Table, etc.)
SmartListButtons
List buttons (Bullet list, Numbered list, Horizontal Rule)
SmartOtherButtons
Miscellaneous buttons (Undo, Redo, Code view, Fullscreen, etc.)
SmartParagraphButtons
Paragraph/Alignment buttons
SmartStyleButtons
Style dropdown group (paragraph style: H1, H2, ..., Normal)
SmartTableStyle
Styling configuration for table blocks.
SmartToolbarGroup
Abstract base for toolbar button groups
SmartToolbarSettings
Comprehensive settings for the toolbar's behavior, layout, and style.
TableCellNode
A single cell in a table.
TableNode
A table block containing a 2D grid of TableCellNodes.
TextFormatSpan
Represents an inline text span with formatting attributes.

Enums

BlockType
The type of block element
SmartBulletStyle
Predefined bullet shapes for unordered lists. Can be set globally via SmartEditorSettings.defaultBulletStyle or per-list via the toolbar bullet style picker.
SmartButtonType
Identifies a toolbar button type (used in onButtonPressed callback)
SmartDropdownMenuDirection
Direction for dropdown menu opening
SmartDropdownType
Identifies a toolbar dropdown type (used in onDropdownChanged callback)
SmartInputType
Virtual keyboard type for mobile
SmartListType
The type of list for a list item
SmartTagType
Identifies the type of HTML element being serialized.
SmartTextAlign
Text alignment for a block
SmartToolbarPosition
Defines where the toolbar is positioned relative to the editor
SmartToolbarType
Defines the toolbar layout mode