ThreadTypographyOverride constructor
const
ThreadTypographyOverride({
- Key? key,
- required Widget child,
- String? textFontFamily,
- String? codeFontFamily,
- double? threadParagraphBaseFontSize,
- double? threadParagraphLineHeight,
- double? narrowDesktopParagraphBaseFontSize,
- EdgeInsets? bubbleContentPadding,
- double? threadFeedItemSpacing,
- bool useThreadAttachmentStyle = false,
- bool normalizeParticipantDisplayName = false,
- bool showInlineDisclosureCue = false,
- bool useDesktopAuthorHeaderAtNarrowWidths = false,
- Color? mineBubbleColor,
- Color? mineBubbleTextColor,
- Color? mineBubbleLinkColor,
- Color? otherHumanBubbleColor,
- Color? otherHumanBubbleTextColor,
- Color? agentBubbleColor,
- Color? agentBubbleBorderColor,
- Color? linkColor,
- Color? attachmentSurfaceColor,
- Color? attachmentBorderColor,
- Color? attachmentIconColor,
- Color? attachmentActionColor,
- Color? attachmentHoverSurfaceColor,
- List<
BoxShadow> ? attachmentHoverShadows, - bool alignAttachmentEdgesWithBubbles = false,
- ThreadAttachmentIconBuilder? attachmentIconBuilder,
- ThreadAttachmentActionIconBuilder? attachmentActionIconBuilder,
- Color? codeBlockSurfaceColor,
- Color? codeBlockHeaderSurfaceColor,
- Color? codeBlockBorderColor,
- Color? codeBlockTextColor,
- Color? codeBlockHeaderTextColor,
- Map<
String, TextStyle> ? codeBlockHighlightTheme, - double? codeBlockFontSize,
- double? codeBlockLineHeight,
- bool codeBlockUseTextFontSize = false,
- bool codeBlockWrapLines = false,
- double? codeBlockHeaderFontSize,
- double? codeBlockActionIconSize,
- double? codeBlockActionButtonSize,
- Color? inlineCodeTextColor,
- Color? inlineCodeBackgroundColor,
- bool inlineCodeHorizontalPadding = false,
- Color? threadErrorSurfaceColor,
- Color? threadErrorTextColor,
- Color? markdownHorizontalRuleColor,
- Color? markdownBlockquoteSideColor,
- Color? markdownBlockquoteBackgroundColor,
- bool markdownSuppressHeadingDividers = false,
- ThreadMarkdownHeadingPaddingResolver? markdownHeadingPaddingResolver,
- 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,
});