Text Bubble
CometChatTextBubble
is the content view shown for TextMessage.
Properties | Type | Description |
---|---|---|
text | String | the text to display |
style | TextBubbleStyle | used to customize appearance of this widget |
theme | Theme | used to set custom theme |
alignment | BubbleAlignment | alignment can be left, right or center |
TextBubbleStyle
TextBubbleStyle
is the class containing attributes to customize appearance of this widget.
Properties | Type | Description |
---|---|---|
textStyle | TextStyle | used to set style of the text of the message |
height | double | used to set height |
width | double | used to set width |
background | Color | used to set background color |
gradient | Gradient | used to set a gradient background |
border | BoxBorder | used to set border |
borderRadius | double | used to set border radius |
Usage
- Dart
CometChatTextBubble(
text:'Hi! how are you?',
alignment: BubbleAlignment.right,
theme: cometChatTheme,
style: TextBubbleStyle(background: Colors.teal),
);