ThreadTypographyOverride constructor

const ThreadTypographyOverride({
  1. Key? key,
  2. required Widget child,
  3. String? textFontFamily,
  4. String? codeFontFamily,
  5. double? threadParagraphBaseFontSize,
  6. double? threadParagraphLineHeight,
  7. double? narrowDesktopParagraphBaseFontSize,
  8. EdgeInsets? bubbleContentPadding,
  9. double? threadFeedItemSpacing,
  10. bool useThreadAttachmentStyle = false,
  11. bool normalizeParticipantDisplayName = false,
  12. bool showInlineDisclosureCue = false,
  13. bool useDesktopAuthorHeaderAtNarrowWidths = false,
  14. Color? mineBubbleColor,
  15. Color? mineBubbleTextColor,
  16. Color? mineBubbleLinkColor,
  17. Color? otherHumanBubbleColor,
  18. Color? otherHumanBubbleTextColor,
  19. Color? agentBubbleColor,
  20. Color? agentBubbleBorderColor,
  21. Color? linkColor,
  22. Color? attachmentSurfaceColor,
  23. Color? attachmentBorderColor,
  24. Color? attachmentIconColor,
  25. Color? attachmentActionColor,
  26. Color? attachmentHoverSurfaceColor,
  27. List<BoxShadow>? attachmentHoverShadows,
  28. bool alignAttachmentEdgesWithBubbles = false,
  29. ThreadAttachmentIconBuilder? attachmentIconBuilder,
  30. ThreadAttachmentActionIconBuilder? attachmentActionIconBuilder,
  31. Color? codeBlockSurfaceColor,
  32. Color? codeBlockHeaderSurfaceColor,
  33. Color? codeBlockBorderColor,
  34. Color? codeBlockTextColor,
  35. Color? codeBlockHeaderTextColor,
  36. Map<String, TextStyle>? codeBlockHighlightTheme,
  37. double? codeBlockFontSize,
  38. double? codeBlockLineHeight,
  39. bool codeBlockUseTextFontSize = false,
  40. bool codeBlockWrapLines = false,
  41. double? codeBlockHeaderFontSize,
  42. double? codeBlockActionIconSize,
  43. double? codeBlockActionButtonSize,
  44. Color? inlineCodeTextColor,
  45. Color? inlineCodeBackgroundColor,
  46. bool inlineCodeHorizontalPadding = false,
  47. Color? threadErrorSurfaceColor,
  48. Color? threadErrorTextColor,
  49. Color? markdownHorizontalRuleColor,
  50. Color? markdownBlockquoteSideColor,
  51. Color? markdownBlockquoteBackgroundColor,
  52. bool markdownSuppressHeadingDividers = false,
  53. ThreadMarkdownHeadingPaddingResolver? markdownHeadingPaddingResolver,
  54. ThreadMarkdownHeadingStyleResolver? markdownHeadingStyleResolver,
})

Implementation

const ThreadTypographyOverride({
  super.key,
  required super.child,
  this.textFontFamily,
  this.codeFontFamily,
  this.threadParagraphBaseFontSize,
  this.threadParagraphLineHeight,
  this.narrowDesktopParagraphBaseFontSize,
  this.bubbleContentPadding,
  this.threadFeedItemSpacing,
  this.useThreadAttachmentStyle = false,
  this.normalizeParticipantDisplayName = false,
  this.showInlineDisclosureCue = false,
  this.useDesktopAuthorHeaderAtNarrowWidths = false,
  this.mineBubbleColor,
  this.mineBubbleTextColor,
  this.mineBubbleLinkColor,
  this.otherHumanBubbleColor,
  this.otherHumanBubbleTextColor,
  this.agentBubbleColor,
  this.agentBubbleBorderColor,
  this.linkColor,
  this.attachmentSurfaceColor,
  this.attachmentBorderColor,
  this.attachmentIconColor,
  this.attachmentActionColor,
  this.attachmentHoverSurfaceColor,
  this.attachmentHoverShadows,
  this.alignAttachmentEdgesWithBubbles = false,
  this.attachmentIconBuilder,
  this.attachmentActionIconBuilder,
  this.codeBlockSurfaceColor,
  this.codeBlockHeaderSurfaceColor,
  this.codeBlockBorderColor,
  this.codeBlockTextColor,
  this.codeBlockHeaderTextColor,
  this.codeBlockHighlightTheme,
  this.codeBlockFontSize,
  this.codeBlockLineHeight,
  this.codeBlockUseTextFontSize = false,
  this.codeBlockWrapLines = false,
  this.codeBlockHeaderFontSize,
  this.codeBlockActionIconSize,
  this.codeBlockActionButtonSize,
  this.inlineCodeTextColor,
  this.inlineCodeBackgroundColor,
  this.inlineCodeHorizontalPadding = false,
  this.threadErrorSurfaceColor,
  this.threadErrorTextColor,
  this.markdownHorizontalRuleColor,
  this.markdownBlockquoteSideColor,
  this.markdownBlockquoteBackgroundColor,
  this.markdownSuppressHeadingDividers = false,
  this.markdownHeadingPaddingResolver,
  this.markdownHeadingStyleResolver,
});