Widget | Description |
---|---|
MessageList | CometChatMessageList is a widget that displays a list of Messages |
MessageComposer | CometChatMessageComposer is a widget that helps in writing and editing of messages and also sending attachments |
CometChatThreadedHeader
directly using Navigator.push
, or you can define it as a widget within the build
method of your State
class.
CometChatThreadedHeader
CometChatThreadedHeader
as a Widget in the build MethodThreadedHeaderStyle
to the CometChatThreadedHeader
Widget using the style
property.
ThreadedMessagesStyle
:
Property | Data Type | Description |
---|---|---|
bubbleContainerBackGroundColor | Color? | Sets background color for the bubble container. |
bubbleContainerBorder | BoxBorder? | Sets border for the bubble container. |
bubbleContainerBorderRadius | BorderRadiusGeometry? | Sets border radius for the bubble container. |
countTextStyle | TextStyle? | Sets text style for the reply count. |
countTextColor | Color? | Sets color for the reply count text. |
countContainerBackGroundColor | Color? | Sets background color for the count container. |
countContainerBorder | BoxBorder? | Sets border for the count container. |
constraints | BoxConstraints? | Sets constraints for the message container. |
incomingMessageBubbleStyle | CometChatIncomingMessageBubbleStyle? | Sets style for the incoming message bubble. |
outgoingMessageBubbleStyle | CometChatOutgoingMessageBubbleStyle? | Sets style for the outgoing message bubble. |
Property | Data Type | Description |
---|---|---|
parentMessage | BaseMessage | Parent message for the thread. |
messageActionView | Function(BaseMessage message, BuildContext context)? | Custom action view for the message. |
style | CometChatThreadedHeaderStyle? | Style parameter for the threaded header. |
loggedInUser | User | Represents the logged-in user. |
template | CometChatMessageTemplate? | Message template used in the thread. |
height | double? | Height of the widget. |
width | double? | Width of the widget. |
messageActionView
method, you can assign custom actions to the parent message bubble widget inside the CometChatThreadedHeader
Widget.
Example
Here is the complete example for reference: