ChatTheme constructor

const ChatTheme({
  1. required Widget? attachmentButtonIcon,
  2. required EdgeInsets? attachmentButtonMargin,
  3. required Color backgroundColor,
  4. required EdgeInsets dateDividerMargin,
  5. required TextStyle dateDividerTextStyle,
  6. required Widget? deliveredIcon,
  7. required Widget? documentIcon,
  8. required TextStyle emptyChatPlaceholderTextStyle,
  9. required Color errorColor,
  10. required Widget? errorIcon,
  11. required Color inputBackgroundColor,
  12. required BorderRadius inputBorderRadius,
  13. Decoration? inputContainerDecoration,
  14. required EdgeInsets inputMargin,
  15. required EdgeInsets inputPadding,
  16. required Color inputTextColor,
  17. Color? inputTextCursorColor,
  18. required InputDecoration inputTextDecoration,
  19. required TextStyle inputTextStyle,
  20. required double messageBorderRadius,
  21. required double messageInsetsHorizontal,
  22. required double messageInsetsVertical,
  23. required Color primaryColor,
  24. required TextStyle receivedEmojiMessageTextStyle,
  25. TextStyle? receivedMessageBodyBoldTextStyle,
  26. TextStyle? receivedMessageBodyCodeTextStyle,
  27. TextStyle? receivedMessageBodyLinkTextStyle,
  28. required TextStyle receivedMessageBodyTextStyle,
  29. required TextStyle receivedMessageCaptionTextStyle,
  30. required Color receivedMessageDocumentIconColor,
  31. required TextStyle receivedMessageLinkDescriptionTextStyle,
  32. required TextStyle receivedMessageLinkTitleTextStyle,
  33. required Color secondaryColor,
  34. required Widget? seenIcon,
  35. required Widget? sendButtonIcon,
  36. required EdgeInsets? sendButtonMargin,
  37. required Widget? sendingIcon,
  38. required TextStyle sentEmojiMessageTextStyle,
  39. TextStyle? sentMessageBodyBoldTextStyle,
  40. TextStyle? sentMessageBodyCodeTextStyle,
  41. TextStyle? sentMessageBodyLinkTextStyle,
  42. required TextStyle sentMessageBodyTextStyle,
  43. required TextStyle sentMessageCaptionTextStyle,
  44. required Color sentMessageDocumentIconColor,
  45. required TextStyle sentMessageLinkDescriptionTextStyle,
  46. required TextStyle sentMessageLinkTitleTextStyle,
  47. required EdgeInsets statusIconPadding,
  48. required SystemMessageTheme systemMessageTheme,
  49. required TypingIndicatorTheme typingIndicatorTheme,
  50. required UnreadHeaderTheme unreadHeaderTheme,
  51. required Color userAvatarImageBackgroundColor,
  52. required List<Color> userAvatarNameColors,
  53. required TextStyle userAvatarTextStyle,
  54. required TextStyle userNameTextStyle,
})

Creates a new chat theme based on provided colors and text styles.

Implementation

const ChatTheme({
  required this.attachmentButtonIcon,
  required this.attachmentButtonMargin,
  required this.backgroundColor,
  required this.dateDividerMargin,
  required this.dateDividerTextStyle,
  required this.deliveredIcon,
  required this.documentIcon,
  required this.emptyChatPlaceholderTextStyle,
  required this.errorColor,
  required this.errorIcon,
  required this.inputBackgroundColor,
  required this.inputBorderRadius,
  this.inputContainerDecoration,
  required this.inputMargin,
  required this.inputPadding,
  required this.inputTextColor,
  this.inputTextCursorColor,
  required this.inputTextDecoration,
  required this.inputTextStyle,
  required this.messageBorderRadius,
  required this.messageInsetsHorizontal,
  required this.messageInsetsVertical,
  required this.primaryColor,
  required this.receivedEmojiMessageTextStyle,
  this.receivedMessageBodyBoldTextStyle,
  this.receivedMessageBodyCodeTextStyle,
  this.receivedMessageBodyLinkTextStyle,
  required this.receivedMessageBodyTextStyle,
  required this.receivedMessageCaptionTextStyle,
  required this.receivedMessageDocumentIconColor,
  required this.receivedMessageLinkDescriptionTextStyle,
  required this.receivedMessageLinkTitleTextStyle,
  required this.secondaryColor,
  required this.seenIcon,
  required this.sendButtonIcon,
  required this.sendButtonMargin,
  required this.sendingIcon,
  required this.sentEmojiMessageTextStyle,
  this.sentMessageBodyBoldTextStyle,
  this.sentMessageBodyCodeTextStyle,
  this.sentMessageBodyLinkTextStyle,
  required this.sentMessageBodyTextStyle,
  required this.sentMessageCaptionTextStyle,
  required this.sentMessageDocumentIconColor,
  required this.sentMessageLinkDescriptionTextStyle,
  required this.sentMessageLinkTitleTextStyle,
  required this.statusIconPadding,
  required this.systemMessageTheme,
  required this.typingIndicatorTheme,
  required this.unreadHeaderTheme,
  required this.userAvatarImageBackgroundColor,
  required this.userAvatarNameColors,
  required this.userAvatarTextStyle,
  required this.userNameTextStyle,
});