SantoChatConfig class
SantoChat 的配置文件 全局配置
颜色/字号/间距/圆角默认取 SantoCommonConfig,保证与全局主题一致。
@since v1.5.0
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
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