LMChatStateBubble
File location
chat_bubble_state.dart
LMChatStateBubble
displays the state of a chat message, such as informational messages or system events, inside a bubble with customizable styles.
Properties
message
(String
)
The message displayed within the state bubble.style
(LMChatStateBubbleStyle?
)
Controls the appearance of the state bubble.
Note: These properties are only a subset. More can be found inside the widget class.
Styling
LMChatStateBubbleStyle
File location
chat_bubble_state.dart
LMChatStateBubbleStyle
defines the appearance of the state bubble, including colors, borders, and alignment.
Property | Type | Description | Required | Default |
---|---|---|---|---|
backgroundColor | Color? | Background color of the state bubble | No | Theme default |
borderRadius | double? | Border radius of the bubble | No | 18.0 |
messageStyle | LMChatTextStyle? | Style for the message text | No | Inherited theme |
Note: These properties are only a subset. More can be found inside the style class.
Example Usage
final stateBubble = LMChatStateBubble(
message: 'This message was deleted',
style: LMChatStateBubbleStyle(
backgroundColor: Colors.grey[300],
borderRadius: 18.0,
messageStyle: LMChatTextStyle(
textStyle: TextStyle(fontSize: 12, color: Colors.black),
),
),
);