Selection container on text

This commit is contained in:
Kgothatso Ngako
2026-08-29 19:39:40 +02:00
parent 3995cdefc6
commit e1b79ad842

View File

@@ -14,6 +14,7 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.text.input.TextFieldState
import androidx.compose.foundation.text.input.clearText
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccessTime
import androidx.compose.material.icons.filled.Check
@@ -334,10 +335,14 @@ class ChatMessageListViewModel(
)
}
Text(
text = localChatMessage.chatMessage.content,
style = MaterialTheme.typography.bodyMedium
)
SelectionContainer {
Text(
text = localChatMessage.chatMessage.content,
style = MaterialTheme.typography.bodyMedium
)
}
Row(
horizontalArrangement = Arrangement.spacedBy(