getMessageBubbleTextStyle method
TextStyle
getMessageBubbleTextStyle(
- CometChatTheme theme,
- BubbleAlignment? alignment, {
- bool forConversation = false,
getMessageBubbleTextStyle is a TextStyle object which is used to style the message bubble text
Implementation
TextStyle getMessageBubbleTextStyle(
CometChatTheme theme, BubbleAlignment? alignment,
{bool forConversation = false}) {
if (messageBubbleTextStyle != null) {
return messageBubbleTextStyle!(theme, alignment,
forConversation: forConversation);
} else {
return TextStyle(
color: alignment == BubbleAlignment.right
? theme.palette.getTertiary()
: theme.palette.getPrimary(),
fontWeight: theme.typography.body.fontWeight,
fontSize: forConversation
? theme.typography.subtitle1.fontSize
: theme.typography.body.fontSize,
fontFamily: theme.typography.body.fontFamily,
decoration: TextDecoration.underline);
}
}