-
public final class MessageBubbleKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMessageBubble(Color color, Shape shape, Modifier modifier, BorderStroke border, PaddingValues contentPadding, Function0<Unit> content)Wraps the content of a message in a bubble. final static ColorgetMessageBubbleColor(Message message, Boolean ownsMessage)Determines the background color of the message bubble based on the message content and ownership. -
-
Method Detail
-
MessageBubble
@Composable() final static Unit MessageBubble(Color color, Shape shape, Modifier modifier, BorderStroke border, PaddingValues contentPadding, Function0<Unit> content)
Wraps the content of a message in a bubble.
- Parameters:
color- The color of the bubble.shape- The shape of the bubble.modifier- Modifier for styling.border- The optional border of the bubble.contentPadding- Padding values to be applied to the content inside the bubble.content- The content of the message.
-
getMessageBubbleColor
@Composable() final static Color getMessageBubbleColor(Message message, Boolean ownsMessage)
Determines the background color of the message bubble based on the message content and ownership.
- Parameters:
message- The message data.ownsMessage- Indicates if the current user owns the message.
-
-
-
-