MarkdownStyledWidgetStyles constructor
const
MarkdownStyledWidgetStyles({
- double fontSize = 16,
- String defaultFont = 'packages/markdown_styled_widget/Roboto',
- FontWeight defaultWeight = FontWeight.normal,
- Color defaultForeground = Colors.black,
- FontWeight boldWeight = FontWeight.bold,
- Color boldForeground = Colors.black54,
- Color linkForeground = Colors.blueAccent,
- String blockquoteFont = 'packages/markdown_styled_widget/IbarraRealNova',
- double blockquoteSize = 16,
- Color blockquoteBackground = Colors.grey,
- Color blockquoteForeground = Colors.black54,
- Color blockquoteBorderColor = Colors.blueGrey,
- double blockquoteBorderSize = 10,
- double blockquotePadding = 10,
- Color codeBackground = Colors.black12,
- double codePadding = 10,
- double codeBorderRadius = 10,
- Color codeForeground = Colors.black87,
- String codeFont = 'packages/markdown_styled_widget/RobotoMono',
- FontWeight codeWeight = FontWeight.normal,
- double heading1Size = 32,
- bool heading1Line = true,
- FontWeight heading1Weight = FontWeight.w500,
- double heading2Size = 28,
- bool heading2Line = true,
- FontWeight heading2Weight = FontWeight.w500,
- double heading3Size = 24,
- bool heading3Line = false,
- FontWeight heading3Weight = FontWeight.w500,
- double heading4Size = 20,
- bool heading4Line = false,
- FontWeight heading4Weight = FontWeight.w500,
- double heading5Size = 16,
- bool heading5Line = false,
- FontWeight heading5Weight = FontWeight.w500,
- double heading6Size = 12,
- bool heading6Line = false,
- FontWeight heading6Weight = FontWeight.w500,
- double lineHeight = 1,
- Color lineColor = Colors.grey,
- double spaceSize = 10,
Implementation
const MarkdownStyledWidgetStyles({
this.fontSize = 16,
this.defaultFont = 'packages/markdown_styled_widget/Roboto',
this.defaultWeight = FontWeight.normal,
this.defaultForeground = Colors.black,
this.boldWeight = FontWeight.bold,
this.boldForeground = Colors.black54,
this.linkForeground = Colors.blueAccent,
this.blockquoteFont = 'packages/markdown_styled_widget/IbarraRealNova',
this.blockquoteSize = 16,
this.blockquoteBackground = Colors.grey,
this.blockquoteForeground = Colors.black54,
this.blockquoteBorderColor = Colors.blueGrey,
this.blockquoteBorderSize = 10,
this.blockquotePadding = 10,
this.codeBackground = Colors.black12,
this.codePadding = 10,
this.codeBorderRadius = 10,
this.codeForeground = Colors.black87,
this.codeFont = 'packages/markdown_styled_widget/RobotoMono',
this.codeWeight = FontWeight.normal,
this.heading1Size = 32,
this.heading1Line = true,
this.heading1Weight = FontWeight.w500,
this.heading2Size = 28,
this.heading2Line = true,
this.heading2Weight = FontWeight.w500,
this.heading3Size = 24,
this.heading3Line = false,
this.heading3Weight = FontWeight.w500,
this.heading4Size = 20,
this.heading4Line = false,
this.heading4Weight = FontWeight.w500,
this.heading5Size = 16,
this.heading5Line = false,
this.heading5Weight = FontWeight.w500,
this.heading6Size = 12,
this.heading6Line = false,
this.heading6Weight = FontWeight.w500,
this.lineHeight = 1,
this.lineColor = Colors.grey,
this.spaceSize = 10,
});