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, EdgeInsets? listBulletPadding, 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
-
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
- h2 → TextStyle?
-
The TextStyle to use for
h2
elements.final - h2Align → WrapAlignment
-
The WrapAlignment to use for h2 text. Defaults to start.
final
- h3 → TextStyle?
-
The TextStyle to use for
h3
elements.final - h3Align → WrapAlignment
-
The WrapAlignment to use for h3 text. Defaults to start.
final
- h4 → TextStyle?
-
The TextStyle to use for
h4
elements.final - h4Align → WrapAlignment
-
The WrapAlignment to use for h4 text. Defaults to start.
final
- h5 → TextStyle?
-
The TextStyle to use for
h5
elements.final - h5Align → WrapAlignment
-
The WrapAlignment to use for h5 text. Defaults to start.
final
- h6 → TextStyle?
-
The TextStyle to use for
h6
elements.final - h6Align → WrapAlignment
-
The WrapAlignment to use for h6 text. Defaults to start.
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 - 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
- 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
-
The WrapAlignment to use for normal text. Defaults to start.
final
- textScaleFactor → double?
-
The text scale factor 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, 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, EdgeInsets? listBulletPadding, 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 nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator.
override