feat: Enhance clickable interactions in ChatDetailScreen by removing indications and adding custom interaction sources
This commit is contained in:
@@ -497,7 +497,10 @@ fun ChatDetailScreen(
|
||||
if (isSavedMessages) PrimaryBlue
|
||||
else avatarColors.backgroundColor
|
||||
)
|
||||
.clickable {
|
||||
.clickable(
|
||||
indication = null,
|
||||
interactionSource = remember { MutableInteractionSource() }
|
||||
) {
|
||||
keyboardController?.hide()
|
||||
focusManager.clearFocus()
|
||||
onUserProfileClick()
|
||||
@@ -529,7 +532,10 @@ fun ChatDetailScreen(
|
||||
// Информация о пользователе
|
||||
Column(
|
||||
modifier =
|
||||
Modifier.weight(1f).clickable {
|
||||
Modifier.weight(1f).clickable(
|
||||
indication = null,
|
||||
interactionSource = remember { MutableInteractionSource() }
|
||||
) {
|
||||
keyboardController?.hide()
|
||||
focusManager.clearFocus()
|
||||
onUserProfileClick()
|
||||
@@ -1416,6 +1422,8 @@ private fun MessageBubble(
|
||||
modifier =
|
||||
Modifier.widthIn(max = 300.dp)
|
||||
.combinedClickable(
|
||||
indication = null,
|
||||
interactionSource = remember { MutableInteractionSource() },
|
||||
onClick = onClick,
|
||||
onLongClick = onLongClick
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user