flutter_blocknote_editor library

Flutter BlockNote Editor - Production-ready BlockNoteJS WebView integration.

This package provides a Flutter widget that embeds BlockNoteJS inside a WebView with bidirectional communication, transaction batching, and undo/redo safety.

Classes

BlockNoteBlock
BlockNote block structure.
BlockNoteBlockContent
Union type for block content.
BlockNoteBlockTypeItem
Block type select item configuration.
BlockNoteColorPair
A color pair with text and background colors.
BlockNoteColorScheme
Color scheme configuration.
BlockNoteController
Controller for programmatic operations on a BlockNote editor.
BlockNoteCustomInlineContent
Custom inline content.
BlockNoteDocument
BlockNote document structure.
BlockNoteDocumentVersion
BlockNote document schema version.
BlockNoteEditor
BlockNote editor widget.
BlockNoteFontConfig
Font configuration for BlockNote editor.
BlockNoteFontFile
A font file for custom font configuration.
BlockNoteHighlightColors
Highlight colors configuration.
BlockNoteInlineContent
BlockNote block inline content.
BlockNoteInlineContentConverter
JSON converters for inline content and block content.
BlockNoteInlineContentList
BlockNoteLinkContent
Link inline content.
BlockNoteSlashCommandConfig
Slash command configuration.
BlockNoteSlashCommandIcon
Icon for a slash command item.
BlockNoteSlashCommandIconImage
Icon as an image URL (PNG, JPEG, or data URL from app assets).
BlockNoteSlashCommandIconSvg
Icon as raw SVG markup (rendered inline).
BlockNoteSlashCommandIconText
Icon as emoji or short text (rendered in a span).
BlockNoteSlashCommandItem
Slash command item configuration.
BlockNoteStyledText
BlockNote styled text content.
BlockNoteTableBlockContent
BlockNoteTableContent
BlockNote table content structure.
BlockNoteTableRow
BlockNote table row structure.
BlockNoteTextContent
Text inline content.
BlockNoteTheme
Theme configuration for BlockNote editor.
BlockNoteToolbarButton
Toolbar button configuration.
BlockNoteToolbarConfig
Toolbar configuration.
BlockNoteTransaction
A BlockNote transaction containing one or more operations.
BlockNoteTransactionOp
A single transaction operation.

Enums

BlockNoteBasicTextStyle
Basic text styles for formatting toolbar buttons.
BlockNoteBlockType
Standard BlockNote block types.
BlockNoteDefaultSlashCommand
Enumeration of default slash commands provided by BlockNote.
BlockNoteFontFormat
Font file format.
BlockNoteHighlightColorType
Highlight color type.
BlockNoteToolbarButtonType
Toolbar button types.
BlockNoteTransactionOperation
Transaction operation types.

Extensions

BlockNoteFontConfigExtension on BlockNoteFontConfig
Extension for BlockNoteFontConfig to add generateCss method.
BlockNoteFontFileCssExtension on BlockNoteFontFile
Extension for BlockNoteFontFile to add toCssSrc method.
BlockNoteFontFileExtension on BlockNoteFontFile
Extension for BlockNoteFontFile to add CSS-related getters.
BlockNoteFontFormatExtension on BlockNoteFontFormat
Gets the CSS format string.
BlockNoteThemeExtension on BlockNoteTheme
Extension for BlockNoteTheme to add helper methods.
BlockNoteToolbarButtonExtension on BlockNoteToolbarButton
Extension to add effectiveKey getter.

Functions

generateBlockId() String
Generates a unique block id (UUID v4).