PrismMarkdownStyle class
Visual configuration for PrismMarkdown widgets.
Every field is optional; unset fields fall back to values derived from the ambient ThemeData.
- Annotations
Constructors
-
PrismMarkdownStyle({List<
TextStyle?> ? headingStyle, TextStyle? codeStyle, Color? codeBackground, Color? codeblockBackground, EdgeInsetsGeometry? codeblockPadding, Decoration? blockquoteDecoration, EdgeInsetsGeometry? blockquotePadding, TableBorder? tableBorder, Color? tableHeaderBackground, TextStyle? linkStyle, EdgeInsetsGeometry? listPadding, double? horizontalRuleThickness, Color? horizontalRuleColor, TextStyle? textStyle}) -
Creates a style configuration.
const
Properties
- blockquoteDecoration → Decoration?
-
Decoration for blockquotes.
final
- blockquotePadding → EdgeInsetsGeometry?
-
Padding around blockquotes.
final
- codeBackground → Color?
-
Background color behind inline code spans.
final
- codeblockBackground → Color?
-
Background color of fenced code blocks.
final
- codeblockPadding → EdgeInsetsGeometry?
-
Padding around fenced code blocks.
final
- codeStyle → TextStyle?
-
Text style for inline code spans.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headingStyle
→ List<
TextStyle?> ? -
Text style applied to headings level 1 through 6 (indexed 0..5).
When an entry is null it is derived from TextTheme.
final
- horizontalRuleColor → Color?
-
Color of horizontal rules.
final
- horizontalRuleThickness → double?
-
Thickness of horizontal rules.
final
- linkStyle → TextStyle?
-
Text style applied to link text.
final
- listPadding → EdgeInsetsGeometry?
-
Padding around lists.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tableBorder → TableBorder?
-
Border surrounding GFM tables.
final
- tableHeaderBackground → Color?
-
Background color of table header rows.
final
- textStyle → TextStyle?
-
Base text style applied to paragraph text.
final
Methods
-
copyWith(
{TextStyle? textStyle, List< TextStyle?> ? headingStyle, TextStyle? codeStyle, Color? codeBackground, Color? codeblockBackground, EdgeInsetsGeometry? codeblockPadding, Decoration? blockquoteDecoration, EdgeInsetsGeometry? blockquotePadding, TableBorder? tableBorder, Color? tableHeaderBackground, TextStyle? linkStyle, EdgeInsetsGeometry? listPadding, double? horizontalRuleThickness, Color? horizontalRuleColor}) → PrismMarkdownStyle - Returns a copy of this style with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
BuildContext context) → PrismMarkdownStyle - Resolves unset fields against the ambient ThemeData.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited