SantoChatConfig class

SantoChat 的配置文件 全局配置

颜色/字号/间距/圆角默认取 SantoCommonConfig,保证与全局主题一致。

@since v1.5.0

Inheritance

Constructors

SantoChatConfig({Color? backgroundColor, Color? myBubbleColor, Color? otherBubbleColor, SantoTextStyle? myTextStyle, SantoTextStyle? otherTextStyle, double? bubbleRadius, EdgeInsets? bubblePadding, double? bubbleMaxWidthRatio, Color? myAccentColor, Color? otherAccentColor, SantoTextStyle? nameTextStyle, SantoTextStyle? timeTextStyle, SantoTextStyle? systemTextStyle, Color? systemBackgroundColor, EdgeInsets? systemPadding, double? avatarSize, Color? quoteBackgroundColor, SantoTextStyle? quoteTitleTextStyle, SantoTextStyle? quotePreviewTextStyle, Color? inputBackgroundColor, SantoTextStyle? inputTextStyle, SantoTextStyle? inputHintTextStyle, double? emojiSize, String configId = GLOBAL_CONFIG_ID})
遵循外部主题配置 默认值见 SantoDefaultConfigUtils.defaultChatConfig

Properties

avatarSize → double
no setter
backgroundColor → Color
no setter
bubbleMaxWidthRatio → double
no setter
bubblePadding → EdgeInsets
no setter
bubbleRadius → double
no setter
commonConfig → SantoCommonConfig
no setterinherited
configId → String
no setterinherited
emojiSize → double
no setter
hashCode → int
The hash code for this object.
no setterinherited
inputBackgroundColor → Color
no setter
inputHintTextStyle → SantoTextStyle
no setter
inputTextStyle → SantoTextStyle
no setter
myAccentColor → Color
no setter
myBubbleColor → Color
我方气泡背景色:主题色加透明度派生,浅底配深色文字,对齐 DevOpsMobile
no setter
myTextStyle → SantoTextStyle
no setter
nameTextStyle → SantoTextStyle
no setter
otherAccentColor → Color
no setter
otherBubbleColor → Color
no setter
otherTextStyle → SantoTextStyle
no setter
quoteBackgroundColor → Color
no setter
quotePreviewTextStyle → SantoTextStyle
no setter
quoteTitleTextStyle → SantoTextStyle
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
systemBackgroundColor → Color
no setter
systemPadding → EdgeInsets
no setter
systemTextStyle → SantoTextStyle
no setter
timeTextStyle → SantoTextStyle
no setter

Methods

copyWith({Color? backgroundColor, Color? myBubbleColor, Color? otherBubbleColor, SantoTextStyle? myTextStyle, SantoTextStyle? otherTextStyle, double? bubbleRadius, EdgeInsets? bubblePadding, double? bubbleMaxWidthRatio, Color? myAccentColor, Color? otherAccentColor, SantoTextStyle? nameTextStyle, SantoTextStyle? timeTextStyle, SantoTextStyle? systemTextStyle, Color? systemBackgroundColor, EdgeInsets? systemPadding, double? avatarSize, Color? quoteBackgroundColor, SantoTextStyle? quoteTitleTextStyle, SantoTextStyle? quotePreviewTextStyle, Color? inputBackgroundColor, SantoTextStyle? inputTextStyle, SantoTextStyle? inputHintTextStyle, double? emojiSize}) → SantoChatConfig
initThemeConfig(String configId, {SantoCommonConfig? currentLevelCommonConfig}) → void
部分代码示意如下:
override
initThemeConfigPersonal() → void
当自定义组件的配置时调用 根据自定义时传入的 configId 对配置字段打平
inherited
merge(SantoChatConfig? other) → SantoChatConfig
合并配置,other 中的非空字段优先
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited