Timeline Message Item
fun TimelineMessageItem(message: UikitTimelineMessage, modifier: Modifier = Modifier, textBackgroundColor: Color = if (SendbirdUikitCompose.isDarkTheme) {
MaterialTheme.colorScheme.surfaceTint.copy(alpha = SendbirdOpacity.LowOpacity)
} else {
MaterialTheme.colorScheme.surfaceTint.copy(alpha = SendbirdOpacity.MediumOpacity)
}, textColor: Color = if (SendbirdUikitCompose.isDarkTheme) {
MaterialTheme.colorScheme.onBackground.copy(alpha = SendbirdOpacity.MediumOpacity)
} else {
MaterialTheme.colorScheme.inverseOnSurface.copy(alpha = SendbirdOpacity.HighOpacity)
}, textStyle: TextStyle = MaterialTheme.typography.labelSmall)
A Composable to display the UikitTimelineMessage item.
Since
1.0.0-beta.1
Parameters
message
The UikitTimelineMessage to display.
modifier
The modifier to be applied to the view.
text Background Color
The background color of the text message.
text Color
The color of the text message.
text Style
The style of the text message.