Skip to content

Commit 671db25

Browse files
committed
Fix ripple
1 parent 7300ddf commit 671db25

File tree

1 file changed

+2
-1
lines changed
  • benchmarking/app/src/main/java/com/example/macrobenchmark_codelab/ui/components

1 file changed

+2
-1
lines changed

benchmarking/app/src/main/java/com/example/macrobenchmark_codelab/ui/components/Button.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package com.example.macrobenchmark_codelab.ui.components
1818

1919
import android.content.res.Configuration.UI_MODE_NIGHT_YES
2020
import androidx.compose.foundation.BorderStroke
21+
import androidx.compose.foundation.LocalIndication
2122
import androidx.compose.foundation.background
2223
import androidx.compose.foundation.clickable
2324
import androidx.compose.foundation.indication
@@ -92,7 +93,7 @@ fun JetsnackButton(
9293
minWidth = ButtonDefaults.MinWidth,
9394
minHeight = ButtonDefaults.MinHeight
9495
)
95-
.indication(interactionSource, rememberRipple())
96+
.indication(interactionSource, LocalIndication.current)
9697
.padding(contentPadding),
9798
horizontalArrangement = Arrangement.Center,
9899
verticalAlignment = Alignment.CenterVertically,

0 commit comments

Comments
 (0)