MarkdownStyledWidgetStyles constructor

const MarkdownStyledWidgetStyles({
  1. double fontSize = 16,
  2. String defaultFont = 'packages/markdown_styled_widget/Roboto',
  3. FontWeight defaultWeight = FontWeight.normal,
  4. Color defaultForeground = Colors.black,
  5. FontWeight boldWeight = FontWeight.bold,
  6. Color boldForeground = Colors.black54,
  7. Color linkForeground = Colors.blueAccent,
  8. String blockquoteFont = 'packages/markdown_styled_widget/IbarraRealNova',
  9. double blockquoteSize = 16,
  10. Color blockquoteBackground = Colors.grey,
  11. Color blockquoteForeground = Colors.black54,
  12. Color blockquoteBorderColor = Colors.blueGrey,
  13. double blockquoteBorderSize = 10,
  14. double blockquotePadding = 10,
  15. Color codeBackground = Colors.black12,
  16. double codePadding = 10,
  17. double codeBorderRadius = 10,
  18. Color codeForeground = Colors.black87,
  19. String codeFont = 'packages/markdown_styled_widget/RobotoMono',
  20. FontWeight codeWeight = FontWeight.normal,
  21. double heading1Size = 32,
  22. bool heading1Line = true,
  23. FontWeight heading1Weight = FontWeight.w500,
  24. double heading2Size = 28,
  25. bool heading2Line = true,
  26. FontWeight heading2Weight = FontWeight.w500,
  27. double heading3Size = 24,
  28. bool heading3Line = false,
  29. FontWeight heading3Weight = FontWeight.w500,
  30. double heading4Size = 20,
  31. bool heading4Line = false,
  32. FontWeight heading4Weight = FontWeight.w500,
  33. double heading5Size = 16,
  34. bool heading5Line = false,
  35. FontWeight heading5Weight = FontWeight.w500,
  36. double heading6Size = 12,
  37. bool heading6Line = false,
  38. FontWeight heading6Weight = FontWeight.w500,
  39. double lineHeight = 1,
  40. Color lineColor = Colors.grey,
  41. 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,
});