SantoChatConfig constructor

SantoChatConfig({
  1. Color? backgroundColor,
  2. Color? myBubbleColor,
  3. Color? otherBubbleColor,
  4. SantoTextStyle? myTextStyle,
  5. SantoTextStyle? otherTextStyle,
  6. double? bubbleRadius,
  7. EdgeInsets? bubblePadding,
  8. double? bubbleMaxWidthRatio,
  9. Color? myAccentColor,
  10. Color? otherAccentColor,
  11. SantoTextStyle? nameTextStyle,
  12. SantoTextStyle? timeTextStyle,
  13. SantoTextStyle? systemTextStyle,
  14. Color? systemBackgroundColor,
  15. EdgeInsets? systemPadding,
  16. double? avatarSize,
  17. Color? quoteBackgroundColor,
  18. SantoTextStyle? quoteTitleTextStyle,
  19. SantoTextStyle? quotePreviewTextStyle,
  20. Color? inputBackgroundColor,
  21. SantoTextStyle? inputTextStyle,
  22. SantoTextStyle? inputHintTextStyle,
  23. double? emojiSize,
  24. 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);