Skip to main content

Message Bubble

Overview

CometChatMessageBubble is the reusable components which forms different types of message bubbles accordingly.

There are different section available in message bubble which can be altered by passing CometChatMessageTemplate in CometChatMessages


Sections

Following are the sections in message bubble

  1. Header View
  2. Leading View
  3. Content View
  4. Bottom View
  5. Thread View
  6. footer view

Properties

PropertiesTypeDescription
leadingViewWidget?used to set view in leadingView section
headerViewWidget?used to set view in headerview section
replyViewWidget?used to set view in replyview section
contentViewWidget?used to set content view , by default all different type of bubble are shown here
threadViewWidget?used to set view in threadview section , by default threaded section is shown
footerViewWidget?used to set footer view for message bubble , by default message receipt is shown
alignmentBubbleAlignment?used to set bubble alignment , can be left, right and center
styleMessageBubbleStyleused to set styling properties foe message bubble
bottomViewWidget?used to set bottom view for message bubble , by default reactions are shown here

Style

PropertiesTypeDescription
heightdoubleused to set height
widthdoubleused to set width
backgroundColorused to set the background color
gradientGradientused to set background gradient
borderBoxBorderused to set border
borderRadiusdoubleused to set border radius
contentPaddingEdgeInsetsused to provide