MarkdownEditorThemeData class

Editor-specific visual styling.

Host apps can pass this directly to SmoothMarkdownEditor.editorTheme or install it globally with ThemeData.extensions.

Inheritance
Annotations

Constructors

MarkdownEditorThemeData({Decoration? decoration, Decoration? sourceDecoration, Decoration? previewDecoration, TextStyle? sourceTextStyle, Color? toolbarColor, Color? toolbarIconColor, Color? toolbarActiveIconColor, Color? toolbarActiveBackgroundColor, Color? dividerColor, Color? searchBarColor, Color? suggestionPanelColor, Color? suggestionSelectedBackgroundColor, Color? selectionColor, Color? dropTargetColor, Color? dropTargetBorderColor, Color? blockBorderColor, Color? blockHeaderColor, TextStyle? blockHeaderTextStyle, Color? tableBorderColor, Color? tableHeaderColor, Color? tableSelectionColor, Color? tableActiveBorderColor, double? editorBorderRadius, double? toolbarButtonRadius, double? blockBorderRadius, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? sourcePadding, EdgeInsetsGeometry? previewPadding, EdgeInsetsGeometry? blockPadding, EdgeInsetsGeometry? tablePadding})
Creates editor-specific visual styling.
const
MarkdownEditorThemeData.fromTheme(ThemeData theme)
Builds editor styling from the ambient Flutter theme.
factory

Properties

blockBorderColor Color?
Border color for editable block chrome.
final
blockBorderRadius double?
Radius for editable block chrome.
final
blockHeaderColor Color?
Header strip color for editable block chrome.
final
blockHeaderTextStyle TextStyle?
Header label style for editable block chrome.
final
blockPadding EdgeInsetsGeometry?
Padding inside editable block chrome.
final
contentPadding EdgeInsetsGeometry?
Padding for formatted editor content.
final
decoration Decoration?
Decoration for the whole editor.
final
dividerColor Color?
Divider color for toolbar, split panes, and block chrome.
final
dropTargetBorderColor Color?
Drop target border for formatted block drag and drop.
final
dropTargetColor Color?
Drop target background for formatted block drag and drop.
final
editorBorderRadius double?
Radius for the outer editor container.
final
hashCode int
The hash code for this object.
no setteroverride
previewDecoration Decoration?
Decoration for formatted and preview panes.
final
previewPadding EdgeInsetsGeometry?
Padding for preview content.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchBarColor Color?
Search bar background color.
final
selectionColor Color?
Selection highlight for formatted blocks, list items, and table cells.
final
sourceDecoration Decoration?
Decoration for source editing panes.
final
sourcePadding EdgeInsetsGeometry?
Padding for source editor text.
final
sourceTextStyle TextStyle?
Text style used by Markdown source editors.
final
suggestionPanelColor Color?
Slash command and wikilink suggestion panel background.
final
suggestionSelectedBackgroundColor Color?
Selected suggestion row background.
final
tableActiveBorderColor Color?
Active table cell outline color.
final
tableBorderColor Color?
Table grid border color.
final
tableHeaderColor Color?
Table header row or header column background.
final
tablePadding EdgeInsetsGeometry?
Padding around editable table content.
final
tableSelectionColor Color?
Selected table cell background.
final
toolbarActiveBackgroundColor Color?
Background color for active toolbar commands and modes.
final
toolbarActiveIconColor Color?
Icon color for active toolbar commands and modes.
final
toolbarButtonRadius double?
Radius for active toolbar buttons.
final
toolbarColor Color?
Toolbar background color.
final
toolbarIconColor Color?
Default toolbar icon color.
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({Decoration? decoration, Decoration? sourceDecoration, Decoration? previewDecoration, TextStyle? sourceTextStyle, Color? toolbarColor, Color? toolbarIconColor, Color? toolbarActiveIconColor, Color? toolbarActiveBackgroundColor, Color? dividerColor, Color? searchBarColor, Color? suggestionPanelColor, Color? suggestionSelectedBackgroundColor, Color? selectionColor, Color? dropTargetColor, Color? dropTargetBorderColor, Color? blockBorderColor, Color? blockHeaderColor, TextStyle? blockHeaderTextStyle, Color? tableBorderColor, Color? tableHeaderColor, Color? tableSelectionColor, Color? tableActiveBorderColor, double? editorBorderRadius, double? toolbarButtonRadius, double? blockBorderRadius, EdgeInsetsGeometry? contentPadding, EdgeInsetsGeometry? sourcePadding, EdgeInsetsGeometry? previewPadding, EdgeInsetsGeometry? blockPadding, EdgeInsetsGeometry? tablePadding}) MarkdownEditorThemeData
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<MarkdownEditorThemeData>? other, double t) MarkdownEditorThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(MarkdownEditorThemeData? other) MarkdownEditorThemeData
Returns this theme with non-null values from other overriding it.
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.
override