widgets/smooth_markdown_editor library

Classes

MarkdownEditorCapabilities
Configures which built-in editor commands are available.
MarkdownEditorCustomBlockContext
Context passed to MarkdownEditorCustomBlockBuilder.
MarkdownEditorCustomBlockEditorContext
Context passed to MarkdownEditorCustomBlockEditorBuilder.
MarkdownEditorImagePickEvent
Image picking/insertion lifecycle event.
MarkdownEditorImageSelection
Image data returned by SmoothMarkdownEditor.onPickImage.
MarkdownEditorPerformanceSnapshot
Lightweight editor performance snapshot for host telemetry.
MarkdownEditorSlashCommand
Host-provided slash command that inserts Markdown when selected.
MarkdownEditorThemeData
Editor-specific visual styling.
SmoothMarkdownEditor
A Markdown source editor with formatted editing, live preview, and Scratch-inspired commands.

Enums

MarkdownEditorImagePickStatus
Image picking/insertion lifecycle status reported to host apps.
MarkdownEditorMode
Display mode for SmoothMarkdownEditor.

Typedefs

MarkdownEditorCustomBlockBuilder = Widget? Function(BuildContext context, MarkdownEditorCustomBlockContext contextData)
Builds a host-provided formatted view for a custom Markdown block.
MarkdownEditorCustomBlockEditorBuilder = Widget? Function(BuildContext context, MarkdownEditorCustomBlockEditorContext contextData)
Builds a host-provided editor for a custom Markdown block.
MarkdownEditorImagePickerCallback = FutureOr<MarkdownEditorImageSelection?> Function()
Called when the image command should pick/import an image.
MarkdownEditorImagePickEventCallback = void Function(MarkdownEditorImagePickEvent event)
Called when image picking/insertion status changes.
MarkdownEditorMarkdownExportCallback = FutureOr<void> Function(String markdown)
Called when the export menu requests a Markdown file export.
MarkdownEditorMarkdownImportCallback = FutureOr<String?> Function()
Called when the editor should import Markdown from a host-provided file.
MarkdownEditorPdfExportCallback = FutureOr<void> Function(String markdown, String html)
Called when the editor requests a Scratch-style PDF/print export.
MarkdownEditorPerformanceCallback = void Function(MarkdownEditorPerformanceSnapshot snapshot)
Called after editor state changes with lightweight performance telemetry.
MarkdownEditorShortcutCallback = KeyEventResult Function(KeyEvent event, MarkdownEditorController controller)
Host callback for editor keyboard shortcuts.
MarkdownEditorSlashCommandCallback = FutureOr<String?> Function(String query)
Called when a custom slash command is selected.
MarkdownEditorToolbarBuilder = Widget Function(BuildContext context, Widget defaultToolbar)
Wraps or replaces the default editor toolbar.