Skip to main content

LMChatBubbleMedia

File location
chat_bubble_media.dart

LMChatBubbleMedia displays media content, such as images, videos, GIFs, or documents, within a chat bubble.

Properties

  1. attachments (List<LMChatAttachmentViewData>)
    List of media attachments associated with the message.

  2. count (int)
    Number of attachments in the message.

  3. attachmentUploaded (bool)
    Indicates if the attachment has been uploaded.

Note: These properties are only a subset. More can be found inside the widget class.


Example Usage

final mediaBubble = LMChatBubbleMedia(
conversation: conversationData,
attachments: attachmentsList,
count: attachmentsList.length,
attachmentUploaded: true,
imageBuilder: (context, attachment) => Image.network(attachment.url),
);