MarkdownStyleSheet class
Defines which TextStyle objects to use for which Markdown elements.
Constructors
- MarkdownStyleSheet({TextStyle a, TextStyle p, TextStyle code, TextStyle h1, TextStyle h2, TextStyle h3, TextStyle h4, TextStyle h5, TextStyle h6, TextStyle em, TextStyle strong, TextStyle del, TextStyle blockquote, TextStyle img, TextStyle checkbox, double blockSpacing, double listIndent, TextStyle listBullet, TextStyle tableHead, TextStyle tableBody, TextAlign tableHeadAlign, TableBorder tableBorder, TableColumnWidth tableColumnWidth, EdgeInsets tableCellsPadding, Decoration tableCellsDecoration, 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, double textScaleFactor})
- 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
-
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
-
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
-
final
- h2 → TextStyle
-
The TextStyle to use for
h2
elements.final - h2Align → WrapAlignment
-
final
- h3 → TextStyle
-
The TextStyle to use for
h3
elements.final - h3Align → WrapAlignment
-
final
- h4 → TextStyle
-
The TextStyle to use for
h4
elements.final - h4Align → WrapAlignment
-
final
- h5 → TextStyle
-
The TextStyle to use for
h5
elements.final - h5Align → WrapAlignment
-
final
- h6 → TextStyle
-
The TextStyle to use for
h6
elements.final - h6Align → WrapAlignment
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, override
- 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
- listIndent → double
-
The amount of horizontal space to indent list items.
final
- orderedListAlign → WrapAlignment
-
final
- p → TextStyle
-
The TextStyle to use for
p
elements.final - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- strong → TextStyle
-
The TextStyle to use for
strong
elements.final -
styles
→ Map<
String, TextStyle> -
A Map from element name to the corresponding TextStyle object.
read-only
- 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
andtd
elements.final - tableCellsPadding → EdgeInsets
-
The padding to use for
th
andtd
elements.final - tableColumnWidth → TableColumnWidth
-
The TableColumnWidth to use for
th
andtd
elements.final - tableHead → TextStyle
-
The TextStyle to use for
th
elements.final - tableHeadAlign → TextAlign
-
The TextAlign to use for
th
elements.final - textAlign → WrapAlignment
-
final
- textScaleFactor → double
-
final
- unorderedListAlign → WrapAlignment
-
final
Methods
-
copyWith(
{TextStyle a, TextStyle p, TextStyle code, TextStyle h1, TextStyle h2, TextStyle h3, TextStyle h4, TextStyle h5, TextStyle h6, TextStyle em, TextStyle strong, TextStyle del, TextStyle blockquote, TextStyle img, TextStyle checkbox, double blockSpacing, double listIndent, TextStyle listBullet, TextStyle tableHead, TextStyle tableBody, TextAlign tableHeadAlign, TableBorder tableBorder, TableColumnWidth tableColumnWidth, EdgeInsets tableCellsPadding, Decoration tableCellsDecoration, 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, double textScaleFactor}) → 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 non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override