From 7bc79d8eb2350a03daefda781be73ad161f630d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vivien=20Mah=C3=A9?= Date: Wed, 16 Oct 2024 18:42:38 +0200 Subject: [PATCH] Uses new Ripple API from Compose 1.7.0 https://developer.android.com/develop/ui/compose/touch-input/user-interactions/migrate-indication-ripple?hl=fr --- .../czan/_internal/kotlinextensions/ModifierExtensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/czan/src/commonMain/kotlin/com/tweener/czan/_internal/kotlinextensions/ModifierExtensions.kt b/czan/src/commonMain/kotlin/com/tweener/czan/_internal/kotlinextensions/ModifierExtensions.kt index aa81058..90fbbed 100644 --- a/czan/src/commonMain/kotlin/com/tweener/czan/_internal/kotlinextensions/ModifierExtensions.kt +++ b/czan/src/commonMain/kotlin/com/tweener/czan/_internal/kotlinextensions/ModifierExtensions.kt @@ -14,7 +14,7 @@ import androidx.compose.foundation.gestures.awaitEachGesture import androidx.compose.foundation.gestures.awaitFirstDown import androidx.compose.foundation.gestures.waitForUpOrCancellation import androidx.compose.foundation.interaction.MutableInteractionSource -import androidx.compose.material.ripple.rememberRipple +import androidx.compose.material.ripple import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope @@ -128,7 +128,7 @@ fun Modifier.clickableRipple( enabled = enabled, onClick = onClick, interactionSource = remember { MutableInteractionSource() }, - indication = rememberRipple() + indication = ripple() ) @Composable