LMChatBubbleMedia
File location
chat_bubble_media.dart
LMChatBubbleMedia
displays media content, such as images, videos, GIFs, or documents, within a chat bubble.
Properties
attachments
(List<LMChatAttachmentViewData>
)
List of media attachments associated with the message.count
(int
)
Number of attachments in the message.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),
);