ThemeExtension
class, allowing customizations to be seamlessly applied through global theming or by explicitly passing style objects.

How These Classes Help
1. Targeted Customization
Developers can customize specific attributes of message bubbles, such as:- Background color
- Border radius
- Text style
- Bubble-specific elements like reactions or avatars
-
Specialized bubbles for various message types, such as:
- Audio bubbles
- File bubbles
- Collaborative bubbles
- Poll bubbles
- Deleted message bubbles
- Link preview bubbles
- Message translation bubbles
- Sticker bubbles
2. Unified Global Theming
By leveraging the power of Flutter’s global theming system:- You can define consistent styles across your application.
- Alternatively, you can apply custom styles dynamically by passing
CometChatOutgoingMessageBubbleStyle
andCometChatIncomingMessageBubbleStyle
objects to theoutgoingMessageBubbleStyle
andincomingMessageBubbleStyle
properties of the CometChatMessageListStyle class.

3. Ease of Integration
To apply these styles:- Create a
CometChatMessageListStyle
object. - Assign your custom outgoing and incoming bubble styles.
- Pass this object to the
style
property of the CometChatMessageList widget.
Key Features of Each Class
CometChatOutgoingMessageBubbleStyle
Focused on customizing bubbles for messages sent by the user, with properties for:- Text bubbles: Style text content sent by users.
- Image and video bubbles: Customize visual media messages.
- Audio bubbles: Adjust styles for audio messages.
- File bubbles: Tailor the look of file-sharing bubbles.
- Collaborative bubbles: Style messages related to collaboration features.
- Poll bubbles: Adjust the appearance of poll-related messages.
- Deleted message bubbles: Customize how deleted messages are displayed.
- Link preview bubbles: Style links with previews for shared URLs.
- Message translation bubbles: Adjust translations for sent messages.
- Sticker bubbles: Customize stickers sent in chats.
- Call bubbles: Style voice and video call bubbles.
- Additional customizations like reactions, timestamps, avatars, and borders.

CometChatIncomingMessageBubbleStyle
Designed to style bubbles for messages received from others, with properties for:- Text bubbles: Customize text content from other users.
- Image and video bubbles: Adjust styles for media from others.
- Audio bubbles: Customize received audio messages.
- File bubbles: Tailor the look of received files.
- Collaborative bubbles: Style incoming collaboration-related messages.
- Poll bubbles: Adjust the appearance of polls sent by others.
- Deleted message bubbles: Customize how deleted messages appear.
- Link preview bubbles: Style links with previews in received messages.
- Message translation bubbles: Adjust translations for received messages.
- Sticker bubbles: Customize stickers sent by others.
- Call bubbles: Style voice and video call bubbles.
- Sender name: Customize the display style for sender names.
- Additional customizations like reactions, timestamps, avatars, and borders.

Benefits
By using these classes, developers can:- Save time by focusing on specific customizations.
- Reduce complexity while maintaining a consistent design.
- Create visually appealing and user-friendly chat interfaces.
Customizable Message Bubbles
The CometChat Flutter Chat UI Kit offers a versatile range of customizable message bubbles tailored to enhance any chat experience. From Text, Image, Video, and Audio Bubbles for seamless multimedia sharing, to File, Poll, and Collaborative Whiteboard/Document Bubbles for productivity, the UI Kit ensures every interaction is visually engaging. Link Previews, Stickers, and Call Bubbles add rich context, while Action and Deleted Message Bubbles enhance clarity. These bubbles are fully customizable, empowering developers to create unique, brand-specific chat interfaces.Text Bubble


Image Bubble


Video Bubble


Audio Bubble


File Bubble


Sticker Bubble


Call Bubble


Collaborative Whiteboard Bubble


Collaborative Document Bubble


Poll Bubble


Link Preview Bubble


Action Message Bubble


Deleted Message Bubble


Call Action Bubble

