SantoChatConfig constructor
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
Implementation
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,
}) : _backgroundColor = backgroundColor,
_myBubbleColor = myBubbleColor,
_otherBubbleColor = otherBubbleColor,
_myTextStyle = myTextStyle,
_otherTextStyle = otherTextStyle,
_bubbleRadius = bubbleRadius,
_bubblePadding = bubblePadding,
_bubbleMaxWidthRatio = bubbleMaxWidthRatio,
_myAccentColor = myAccentColor,
_otherAccentColor = otherAccentColor,
_nameTextStyle = nameTextStyle,
_timeTextStyle = timeTextStyle,
_systemTextStyle = systemTextStyle,
_systemBackgroundColor = systemBackgroundColor,
_systemPadding = systemPadding,
_avatarSize = avatarSize,
_quoteBackgroundColor = quoteBackgroundColor,
_quoteTitleTextStyle = quoteTitleTextStyle,
_quotePreviewTextStyle = quotePreviewTextStyle,
_inputBackgroundColor = inputBackgroundColor,
_inputTextStyle = inputTextStyle,
_inputHintTextStyle = inputHintTextStyle,
_emojiSize = emojiSize,
super(configId: configId);