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. ThreadAttachmentLoadingPlaceholderBuilder? attachmentLoadingPlaceholderBuilder,
  42. ThreadAttachmentLoadingPlaceholderBuilder? imageGenerationLoadingPlaceholderBuilder,
  43. Duration? attachmentLoadTimeout,
  44. ThreadAttachmentImageCache? attachmentImageCache,
  45. ThreadPoisonedErrorPredicate? poisonedErrorPredicate,
  46. ThreadPoisonedErrorBuilder? poisonedErrorBuilder,
  47. VoidCallback? onStartNewThread,
  48. bool showAttachmentReplayWhileLoading = false,
  49. Color? codeBlockSurfaceColor,
  50. Color? codeBlockHeaderSurfaceColor,
  51. Color? codeBlockBorderColor,
  52. Color? codeBlockTextColor,
  53. Color? codeBlockHeaderTextColor,
  54. Map<String, TextStyle>? codeBlockHighlightTheme,
  55. double? codeBlockFontSize,
  56. double? codeBlockLineHeight,
  57. bool codeBlockUseTextFontSize = false,
  58. bool codeBlockWrapLines = false,
  59. double? codeBlockHeaderFontSize,
  60. double? codeBlockActionIconSize,
  61. double? codeBlockActionButtonSize,
  62. Color? inlineCodeTextColor,
  63. Color? inlineCodeBackgroundColor,
  64. bool inlineCodeHorizontalPadding = false,
  65. Color? threadErrorSurfaceColor,
  66. Color? threadErrorTextColor,
  67. Color? markdownHorizontalRuleColor,
  68. Color? markdownBlockquoteSideColor,
  69. Color? markdownBlockquoteBackgroundColor,
  70. bool markdownSuppressHeadingDividers = false,
  71. ThreadMarkdownHeadingPaddingResolver? markdownHeadingPaddingResolver,
  72. ThreadMarkdownHeadingStyleResolver? markdownHeadingStyleResolver,
  73. ThreadMarkdownTextTransformer? markdownTextTransformer,
  74. ThreadMarkdownLinkHandler? markdownLinkHandler,
  75. ThreadMessageOptionsBuilder? messageOptionsBuilder,
  76. ThreadAttachmentOptionsBuilder? attachmentOptionsBuilder,
  77. ThreadGeneratedImageActionsBuilder? generatedImageActionsBuilder,
})

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.attachmentLoadingPlaceholderBuilder,
  this.imageGenerationLoadingPlaceholderBuilder,
  this.attachmentLoadTimeout,
  this.attachmentImageCache,
  this.poisonedErrorPredicate,
  this.poisonedErrorBuilder,
  this.onStartNewThread,
  this.showAttachmentReplayWhileLoading = false,
  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,
  this.messageOptionsBuilder,
  this.attachmentOptionsBuilder,
  this.generatedImageActionsBuilder,
});