MarkdownStyleSheet class

Defines which TextStyle objects to use for which Markdown elements.

Constructors

MarkdownStyleSheet({TextStyle? a, TextStyle? p, EdgeInsets? pPadding, TextStyle? code, TextStyle? h1, EdgeInsets? h1Padding, TextStyle? h2, EdgeInsets? h2Padding, TextStyle? h3, EdgeInsets? h3Padding, TextStyle? h4, EdgeInsets? h4Padding, TextStyle? h5, EdgeInsets? h5Padding, TextStyle? h6, EdgeInsets? h6Padding, TextStyle? em, TextStyle? strong, TextStyle? del, TextStyle? blockquote, TextStyle? img, TextStyle? checkbox, double? blockSpacing, double? listIndent, TextStyle? listBullet, EdgeInsets? listBulletPadding, TextStyle? tableHead, TextStyle? tableBody, TextAlign? tableHeadAlign, EdgeInsets? tablePadding, TableBorder? tableBorder, TableColumnWidth? tableColumnWidth, bool? tableScrollbarThumbVisibility, EdgeInsets? tableCellsPadding, Decoration? tableCellsDecoration, EdgeInsets? tableHeadCellsPadding, Decoration? tableHeadCellsDecoration, TableCellVerticalAlignment tableVerticalAlignment = TableCellVerticalAlignment.middle, EdgeInsets? blockquotePadding, Decoration? blockquoteDecoration, EdgeInsets? codeblockPadding, Decoration? codeblockDecoration, Decoration? horizontalRuleDecoration, WrapAlignment textAlign = WrapAlignment.start, WrapAlignment h1Align = WrapAlignment.start, WrapAlignment h2Align = WrapAlignment.start, WrapAlignment h3Align = WrapAlignment.start, WrapAlignment h4Align = WrapAlignment.start, WrapAlignment h5Align = WrapAlignment.start, WrapAlignment h6Align = WrapAlignment.start, WrapAlignment unorderedListAlign = WrapAlignment.start, WrapAlignment orderedListAlign = WrapAlignment.start, WrapAlignment blockquoteAlign = WrapAlignment.start, WrapAlignment codeblockAlign = WrapAlignment.start, String? superscriptFontFeatureTag, @Deprecated('Use textScaler instead.') double? textScaleFactor, TextScaler? textScaler})
Creates an explicit mapping of TextStyle objects to Markdown elements.
MarkdownStyleSheet.fromCupertinoTheme(CupertinoThemeData theme)
Creates a MarkdownStyleSheet from the TextStyles in the provided CupertinoThemeData.
factory
MarkdownStyleSheet.fromTheme(ThemeData theme)
Creates a MarkdownStyleSheet from the TextStyles in the provided ThemeData.
factory
MarkdownStyleSheet.largeFromTheme(ThemeData theme)
Creates a MarkdownStyle from the TextStyles in the provided ThemeData.
factory

Properties

a → TextStyle?
The TextStyle to use for a elements.
final
blockquote → TextStyle?
The TextStyle to use for blockquote elements.
final
blockquoteAlign → WrapAlignment
The WrapAlignment to use for a blockquote. Defaults to start.
final
blockquoteDecoration → Decoration?
The decoration to use behind blockquote elements.
final
blockquotePadding → EdgeInsets?
The padding to use for blockquote elements.
final
blockSpacing → double?
The amount of vertical space to use between block-level elements.
final
checkbox → TextStyle?
The TextStyle to use for input elements.
final
code → TextStyle?
The TextStyle to use for code elements.
final
codeblockAlign → WrapAlignment
The WrapAlignment to use for a code block. Defaults to start.
final
codeblockDecoration → Decoration?
The decoration to use behind for pre elements.
final
codeblockPadding → EdgeInsets?
The padding to use for pre elements.
final
del → TextStyle?
The TextStyle to use for del elements.
final
em → TextStyle?
The TextStyle to use for em elements.
final
h1 → TextStyle?
The TextStyle to use for h1 elements.
final
h1Align → WrapAlignment
The WrapAlignment to use for h1 text. Defaults to start.
final
h1Padding → EdgeInsets?
The padding to use for h1 elements.
final
h2 → TextStyle?
The TextStyle to use for h2 elements.
final
h2Align → WrapAlignment
The WrapAlignment to use for h2 text. Defaults to start.
final
h2Padding → EdgeInsets?
The padding to use for h2 elements.
final
h3 → TextStyle?
The TextStyle to use for h3 elements.
final
h3Align → WrapAlignment
The WrapAlignment to use for h3 text. Defaults to start.
final
h3Padding → EdgeInsets?
The padding to use for h3 elements.
final
h4 → TextStyle?
The TextStyle to use for h4 elements.
final
h4Align → WrapAlignment
The WrapAlignment to use for h4 text. Defaults to start.
final
h4Padding → EdgeInsets?
The padding to use for h4 elements.
final
h5 → TextStyle?
The TextStyle to use for h5 elements.
final
h5Align → WrapAlignment
The WrapAlignment to use for h5 text. Defaults to start.
final
h5Padding → EdgeInsets?
The padding to use for h5 elements.
final
h6 → TextStyle?
The TextStyle to use for h6 elements.
final
h6Align → WrapAlignment
The WrapAlignment to use for h6 text. Defaults to start.
final
h6Padding → EdgeInsets?
The padding to use for h6 elements.
final
hashCode → int
The hash code for this object.
no setteroverride
horizontalRuleDecoration → Decoration?
The decoration to use for hr elements.
final
img → TextStyle?
The TextStyle to use for img elements.
final
listBullet → TextStyle?
The TextStyle to use for bullets.
final
listBulletPadding → EdgeInsets?
The padding to use for bullets.
final
listIndent → double?
The amount of horizontal space to indent list items.
final
orderedListAlign → WrapAlignment
The WrapAlignment to use for an ordered list. Defaults to start.
final
p → TextStyle?
The TextStyle to use for p elements.
final
pPadding → EdgeInsets?
The padding to use for p elements.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strong → TextStyle?
The TextStyle to use for strong elements.
final
styles → Map<String, TextStyle?>
A Map from element name to the corresponding TextStyle object.
no setter
superscriptFontFeatureTag → String?
Custom font feature tag for font which does not support `sups' feature to create superscript in footnotes.
final
tableBody → TextStyle?
The TextStyle to use for td elements.
final
tableBorder → TableBorder?
The TableBorder to use for table elements.
final
tableCellsDecoration → Decoration?
The decoration to use for th and td elements.
final
tableCellsPadding → EdgeInsets?
The padding to use for th and td elements.
final
tableColumnWidth → TableColumnWidth?
The TableColumnWidth to use for th and td elements.
final
tableHead → TextStyle?
The TextStyle to use for th elements.
final
tableHeadAlign → TextAlign?
The TextAlign to use for th elements.
final
tableHeadCellsDecoration → Decoration?
The decoration to use for th elements.
final
tableHeadCellsPadding → EdgeInsets?
The padding to use for th elements.
final
tablePadding → EdgeInsets?
The padding to use for table elements.
final
tableScrollbarThumbVisibility → bool?
The scrollbar thumbVisibility when the table is scrollable.
final
tableVerticalAlignment → TableCellVerticalAlignment
The TableCellVerticalAlignment to use for th and td elements.
final
textAlign → WrapAlignment
The WrapAlignment to use for normal text. Defaults to start.
final
textScaleFactor → double?
The text scale factor to use in textual elements.
final
textScaler → TextScaler?
The text scaler to use in textual elements.
final
unorderedListAlign → WrapAlignment
The WrapAlignment to use for an unordered list. Defaults to start.
final

Methods

copyWith({TextStyle? a, TextStyle? p, EdgeInsets? pPadding, TextStyle? code, TextStyle? h1, EdgeInsets? h1Padding, TextStyle? h2, EdgeInsets? h2Padding, TextStyle? h3, EdgeInsets? h3Padding, TextStyle? h4, EdgeInsets? h4Padding, TextStyle? h5, EdgeInsets? h5Padding, TextStyle? h6, EdgeInsets? h6Padding, TextStyle? em, TextStyle? strong, TextStyle? del, TextStyle? blockquote, TextStyle? img, TextStyle? checkbox, double? blockSpacing, double? listIndent, TextStyle? listBullet, EdgeInsets? listBulletPadding, TextStyle? tableHead, TextStyle? tableBody, TextAlign? tableHeadAlign, EdgeInsets? tablePadding, TableBorder? tableBorder, TableColumnWidth? tableColumnWidth, bool? tableScrollbarThumbVisibility, EdgeInsets? tableCellsPadding, Decoration? tableCellsDecoration, EdgeInsets? tableHeadCellsPadding, Decoration? tableHeadCellsDecoration, TableCellVerticalAlignment? tableVerticalAlignment, EdgeInsets? blockquotePadding, Decoration? blockquoteDecoration, EdgeInsets? codeblockPadding, Decoration? codeblockDecoration, Decoration? horizontalRuleDecoration, WrapAlignment? textAlign, WrapAlignment? h1Align, WrapAlignment? h2Align, WrapAlignment? h3Align, WrapAlignment? h4Align, WrapAlignment? h5Align, WrapAlignment? h6Align, WrapAlignment? unorderedListAlign, WrapAlignment? orderedListAlign, WrapAlignment? blockquoteAlign, WrapAlignment? codeblockAlign, String? superscriptFontFeatureTag, double? textScaleFactor, TextScaler? textScaler}) → MarkdownStyleSheet
Creates a MarkdownStyleSheet based on the current style, with the provided parameters overridden.
merge(MarkdownStyleSheet? other) → MarkdownStyleSheet
Returns a new text style that is a combination of this style and the given other style.
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