From c95f118daf782df8e2ea6fe3f218a3009461d792 Mon Sep 17 00:00:00 2001 From: meyou <2636699780@qq.com> Date: Sat, 16 May 2026 19:40:47 +0800 Subject: [PATCH] =?UTF-8?q?DayCell=20=E5=85=B3=E9=97=AD=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=20ripple,=E6=B6=88=E9=99=A4=E9=80=89=E4=B8=AD=E5=90=8E?= =?UTF-8?q?=E6=AE=8B=E7=95=99=E7=9A=84=E7=81=B0=E8=89=B2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clickable 默认 indication 会在 release 后慢慢淡出灰色波纹, 选中态视觉已由 reveal 圆形动画承担,关闭默认 indication 即可 让点击反馈立即结束,不留灰色残影。 --- .../src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt b/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt index 5615d93..b77dac0 100644 --- a/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt +++ b/shared/src/commonMain/kotlin/plus/rua/project/ui/DayCell.kt @@ -7,6 +7,7 @@ import androidx.compose.animation.core.tween import androidx.compose.animation.core.updateTransition import androidx.compose.foundation.background import androidx.compose.foundation.clickable +import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.aspectRatio @@ -227,7 +228,11 @@ fun DayCell( ) } } - .clickable(onClick = onClick), + .clickable( + interactionSource = remember { MutableInteractionSource() }, + indication = null, + onClick = onClick + ), contentAlignment = Alignment.Center ) { Column(