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. EdgeInsets? agentBubbleContentPadding,
  10. EdgeInsets? authorHeaderContentPadding,
  11. double? humanMessageHeaderContentSpacing,
  12. double? messageHorizontalInset,
  13. double? attachmentHorizontalInset,
  14. bool shrinkWrapHumanBubbles = false,
  15. double? humanBubbleMaxWidthFraction,
  16. double? emptyMessageAuthorHeaderWidth,
  17. bool compactAuthorHeaders = false,
  18. bool bottomAlignMessageActions = false,
  19. double? threadFeedItemSpacing,
  20. bool useThreadAttachmentStyle = false,
  21. bool normalizeParticipantDisplayName = false,
  22. bool showInlineDisclosureCue = false,
  23. bool useDesktopAuthorHeaderAtNarrowWidths = false,
  24. Color? mineBubbleColor,
  25. Color? mineBubbleTextColor,
  26. Color? mineBubbleLinkColor,
  27. Color? otherHumanBubbleColor,
  28. Color? otherHumanBubbleTextColor,
  29. Color? agentBubbleColor,
  30. Color? agentBubbleBorderColor,
  31. Color? linkColor,
  32. Color? attachmentSurfaceColor,
  33. Color? attachmentBorderColor,
  34. Color? attachmentIconColor,
  35. Color? attachmentActionColor,
  36. Color? attachmentHoverSurfaceColor,
  37. List<BoxShadow>? attachmentHoverShadows,
  38. bool alignAttachmentEdgesWithBubbles = false,
  39. ThreadAttachmentIconBuilder? attachmentIconBuilder,
  40. ThreadAttachmentActionIconBuilder? attachmentActionIconBuilder,
  41. Color? codeBlockSurfaceColor,
  42. Color? codeBlockHeaderSurfaceColor,
  43. Color? codeBlockBorderColor,
  44. Color? codeBlockTextColor,
  45. Color? codeBlockHeaderTextColor,
  46. Map<String, TextStyle>? codeBlockHighlightTheme,
  47. double? codeBlockFontSize,
  48. double? codeBlockLineHeight,
  49. bool codeBlockUseTextFontSize = false,
  50. bool codeBlockWrapLines = false,
  51. double? codeBlockHeaderFontSize,
  52. double? codeBlockActionIconSize,
  53. double? codeBlockActionButtonSize,
  54. Color? inlineCodeTextColor,
  55. Color? inlineCodeBackgroundColor,
  56. bool inlineCodeHorizontalPadding = false,
  57. Color? threadErrorSurfaceColor,
  58. Color? threadErrorTextColor,
  59. Color? markdownHorizontalRuleColor,
  60. Color? markdownBlockquoteSideColor,
  61. Color? markdownBlockquoteBackgroundColor,
  62. bool markdownSuppressHeadingDividers = false,
  63. ThreadMarkdownHeadingPaddingResolver? markdownHeadingPaddingResolver,
  64. ThreadMarkdownHeadingStyleResolver? markdownHeadingStyleResolver,
  65. ThreadMarkdownTextTransformer? markdownTextTransformer,
  66. ThreadMarkdownLinkHandler? markdownLinkHandler,
})

Implementation

const ThreadTypographyOverride({
  super.key,
  required super.child,
  this.textFontFamily,
  this.codeFontFamily,
  this.threadParagraphBaseFontSize,
  this.threadParagraphLineHeight,
  this.narrowDesktopParagraphBaseFontSize,
  this.bubbleContentPadding,
  this.agentBubbleContentPadding,
  this.authorHeaderContentPadding,
  this.humanMessageHeaderContentSpacing,
  this.messageHorizontalInset,
  this.attachmentHorizontalInset,
  this.shrinkWrapHumanBubbles = false,
  this.humanBubbleMaxWidthFraction,
  this.emptyMessageAuthorHeaderWidth,
  this.compactAuthorHeaders = false,
  this.bottomAlignMessageActions = false,
  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,
  this.markdownTextTransformer,
  this.markdownLinkHandler,
});