ChatwootChatTheme class

Default chatwoot chat theme which extends ChatTheme

Annotations

Constructors

ChatwootChatTheme({Widget? attachmentButtonIcon, Color backgroundColor = CHATWOOT_BG_COLOR, TextStyle dateDividerTextStyle = const TextStyle(color: Colors.black26, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333), Widget? deliveredIcon, Widget? documentIcon, TextStyle emptyChatPlaceholderTextStyle = const TextStyle(color: NEUTRAL_2, fontSize: 16, fontWeight: FontWeight.w500, height: 1.5), Color errorColor = ERROR, Widget? errorIcon, Color inputBackgroundColor = Colors.white, BorderRadius inputBorderRadius = const BorderRadius.all(Radius.circular(10)), Color inputTextColor = Colors.black87, TextStyle inputTextStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.w500, height: 1.5), double messageBorderRadius = 20.0, Color primaryColor = CHATWOOT_COLOR_PRIMARY, TextStyle receivedMessageBodyTextStyle = const TextStyle(color: Colors.black87, fontSize: 16, fontWeight: FontWeight.w500, height: 1.5), TextStyle receivedMessageCaptionTextStyle = const TextStyle(color: NEUTRAL_2, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333), Color receivedMessageDocumentIconColor = PRIMARY, TextStyle receivedMessageLinkDescriptionTextStyle = const TextStyle(color: NEUTRAL_0, fontSize: 14, fontWeight: FontWeight.w400, height: 1.428), TextStyle receivedMessageLinkTitleTextStyle = const TextStyle(color: NEUTRAL_0, fontSize: 16, fontWeight: FontWeight.w800, height: 1.375), Color secondaryColor = Colors.white, Widget? seenIcon, Widget? sendButtonIcon, Widget? sendingIcon, TextStyle sentMessageBodyTextStyle = const TextStyle(color: Colors.white, fontSize: 16, fontWeight: FontWeight.w500, height: 1.5), TextStyle sentMessageCaptionTextStyle = const TextStyle(color: NEUTRAL_7_WITH_OPACITY, fontSize: 12, fontWeight: FontWeight.w500, height: 1.333), Color sentMessageDocumentIconColor = NEUTRAL_7, TextStyle sentMessageLinkDescriptionTextStyle = const TextStyle(color: NEUTRAL_7, fontSize: 14, fontWeight: FontWeight.w400, height: 1.428), TextStyle sentMessageLinkTitleTextStyle = const TextStyle(color: NEUTRAL_7, fontSize: 16, fontWeight: FontWeight.w800, height: 1.375), List<Color> userAvatarNameColors = CHATWOOT_AVATAR_COLORS, TextStyle userAvatarTextStyle = const TextStyle(color: NEUTRAL_7, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333), TextStyle userNameTextStyle = const TextStyle(color: Colors.black87, fontSize: 12, fontWeight: FontWeight.w800, height: 1.333)})
Creates a chatwoot chat theme. Use this constructor if you want to override only a couple of variables.
const

Properties

attachmentButtonIcon Widget?
Icon for select attachment button
finalinherited
backgroundColor Color
Used as a background color of a chat widget
finalinherited
dateDividerTextStyle TextStyle
Text style of the date dividers
finalinherited
deliveredIcon Widget?
Icon for message's delivered status. For the best look use size of 16.
finalinherited
documentIcon Widget?
Icon inside file message
finalinherited
emptyChatPlaceholderTextStyle TextStyle
Text style of the empty chat placeholder
finalinherited
errorColor Color
Color to indicate something bad happened (usually - shades of red)
finalinherited
errorIcon Widget?
Icon for message's error status. For the best look use size of 16.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
inputBackgroundColor Color
Color of the bottom bar where text field is
finalinherited
inputBorderRadius BorderRadius
Top border radius of the bottom bar where text field is
finalinherited
inputTextColor Color
Color of the text field's text and attachment/send buttons
finalinherited
inputTextStyle TextStyle
Text style of the message input. To change the color use inputTextColor.
finalinherited
messageBorderRadius double
Border radius of message container
finalinherited
primaryColor Color
Primary color of the chat used as a background of sent messages and statuses
finalinherited
receivedMessageBodyTextStyle TextStyle
Body text style used for displaying text on different types of received messages
finalinherited
receivedMessageCaptionTextStyle TextStyle
Caption text style used for displaying secondary info (e.g. file size) on different types of received messages
finalinherited
receivedMessageDocumentIconColor Color
Color of the document icon on received messages. Has no effect when documentIcon is used.
finalinherited
receivedMessageLinkDescriptionTextStyle TextStyle
Text style used for displaying link description on received messages
finalinherited
receivedMessageLinkTitleTextStyle TextStyle
Text style used for displaying link title on received messages
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryColor Color
Secondary color, used as a background of received messages
finalinherited
seenIcon Widget?
Icon for message's seen status. For the best look use size of 16.
finalinherited
sendButtonIcon Widget?
Icon for send button
finalinherited
sendingIcon Widget?
Icon for message's sending status. For the best look use size of 10.
finalinherited
sentMessageBodyTextStyle TextStyle
Body text style used for displaying text on different types of sent messages
finalinherited
sentMessageCaptionTextStyle TextStyle
Caption text style used for displaying secondary info (e.g. file size) on different types of sent messages
finalinherited
sentMessageDocumentIconColor Color
Color of the document icon on sent messages. Has no effect when documentIcon is used.
finalinherited
sentMessageLinkDescriptionTextStyle TextStyle
Text style used for displaying link description on sent messages
finalinherited
sentMessageLinkTitleTextStyle TextStyle
Text style used for displaying link title on sent messages
finalinherited
userAvatarNameColors List<Color>
Colors used as backgrounds for user avatars and corresponded user names. Calculated based on a user ID, so unique across the whole app.
finalinherited
userAvatarTextStyle TextStyle
Text style used for displaying initials on user avatar if no image is provided
finalinherited
userNameTextStyle TextStyle
User names text style. Color will be overwritten with userAvatarNameColors.
finalinherited

Methods

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