Skip to content

Commit

Permalink
Uses new Ripple API from Compose 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Oct 16, 2024
1 parent 0eb72fb commit 7bc79d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -128,7 +128,7 @@ fun Modifier.clickableRipple(
enabled = enabled,
onClick = onClick,
interactionSource = remember { MutableInteractionSource() },
indication = rememberRipple()
indication = ripple()
)

@Composable
Expand Down

0 comments on commit 7bc79d8

Please sign in to comment.