MdcStyle class final
Visual overrides used by Flutter MDC renderers.
Unset values inherit from the nearest Material Theme.
Constructors
- MdcStyle({TextStyle? text, TextStyle? heading1, TextStyle? heading2, TextStyle? heading3, TextStyle? heading4, TextStyle? heading5, TextStyle? heading6, TextStyle? link, TextStyle? inlineCode, TextStyle? codeBlock, TextStyle? listMarker, TextStyle? blockquote, double blockSpacing = 16, EdgeInsetsGeometry codeBlockPadding = const EdgeInsets.all(16), EdgeInsetsGeometry blockquotePadding = const EdgeInsetsDirectional.only(start: 16), EdgeInsetsGeometry tableCellPadding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8), BoxDecoration? codeBlockDecoration, BoxDecoration? blockquoteDecoration, TableBorder? tableBorder})
-
Creates a set of optional MDC style overrides.
const
Properties
- blockquote → TextStyle?
-
Blockquote text style.
final
- blockquoteDecoration → BoxDecoration?
-
Decoration around blockquotes.
final
- blockquotePadding → EdgeInsetsGeometry
-
Padding inside a blockquote.
final
- blockSpacing → double
-
Vertical space between top-level blocks.
final
- codeBlock → TextStyle?
-
Fenced and indented code-block style.
final
- codeBlockDecoration → BoxDecoration?
-
Decoration around code blocks.
final
- codeBlockPadding → EdgeInsetsGeometry
-
Padding inside a code block.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- heading1 → TextStyle?
-
Level-one heading style.
final
- heading2 → TextStyle?
-
Level-two heading style.
final
- heading3 → TextStyle?
-
Level-three heading style.
final
- heading4 → TextStyle?
-
Level-four heading style.
final
- heading5 → TextStyle?
-
Level-five heading style.
final
- heading6 → TextStyle?
-
Level-six heading style.
final
- inlineCode → TextStyle?
-
Inline code style.
final
- link → TextStyle?
-
Link text style.
final
- listMarker → TextStyle?
-
Ordered and unordered list-marker style.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableBorder → TableBorder?
-
Border used for Markdown tables.
final
- tableCellPadding → EdgeInsetsGeometry
-
Padding inside a table cell.
final
- text → TextStyle?
-
Body text style.
final
Methods
-
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.
inherited