Selection container on text

This commit is contained in:
Kgothatso Ngako committed 2026-08-29 19:39:40 +02:00
1 parent 3995cdefc6
commit e1b79ad842
1 file changed
+9 -4
@@ -14,6 +14,7 @@ import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.text.input.TextFieldState import androidx.compose.foundation.text.input.TextFieldState
import androidx.compose.foundation.text.input.clearText 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.Icons
import androidx.compose.material.icons.filled.AccessTime import androidx.compose.material.icons.filled.AccessTime
import androidx.compose.material.icons.filled.Check import androidx.compose.material.icons.filled.Check
@@ -334,10 +335,14 @@ class ChatMessageListViewModel(
) )
} }
Text( SelectionContainer {
text = localChatMessage.chatMessage.content,
style = MaterialTheme.typography.bodyMedium Text(
) text = localChatMessage.chatMessage.content,
style = MaterialTheme.typography.bodyMedium
)
}
Row( Row(
horizontalArrangement = Arrangement.spacedBy( horizontalArrangement = Arrangement.spacedBy(