@@ -21,7 +21,7 @@ import androidx.compose.foundation.lazy.items
21
21
import androidx.compose.foundation.lazy.itemsIndexed
22
22
import androidx.compose.material.Icon
23
23
import androidx.compose.material.Text
24
- import androidx.compose.material.ripple.rememberRipple
24
+ import androidx.compose.material.ripple
25
25
import androidx.compose.runtime.Composable
26
26
import androidx.compose.runtime.remember
27
27
import androidx.compose.ui.Alignment
@@ -72,7 +72,7 @@ internal fun FieldRow(
72
72
.safeClickable(
73
73
onClick = onRowTapped,
74
74
interactionSource = remember { MutableInteractionSource () },
75
- indication = rememberRipple (bounded = true )
75
+ indication = ripple (bounded = true )
76
76
)
77
77
) {
78
78
Spacer (modifier = Modifier .height(2 .dp))
@@ -85,7 +85,7 @@ internal fun FieldRow(
85
85
.safeClickable(
86
86
onClick = onDelete,
87
87
interactionSource = remember { MutableInteractionSource () },
88
- indication = rememberRipple (bounded = false )
88
+ indication = ripple (bounded = false )
89
89
)
90
90
.padding(start = 4 .dp),
91
91
painter = painterResource(id = Drawables .do_not_disturb_on_24px),
@@ -152,7 +152,7 @@ fun AddItemRow(
152
152
modifier = Modifier
153
153
.safeClickable(
154
154
interactionSource = remember { MutableInteractionSource () },
155
- indication = rememberRipple (),
155
+ indication = ripple (),
156
156
onClick = onClick
157
157
)
158
158
) {
@@ -256,7 +256,7 @@ private fun LazyListScope.listOfNotes(
256
256
) { index, item ->
257
257
Column (modifier = Modifier .combinedClickable(
258
258
interactionSource = remember { MutableInteractionSource () },
259
- indication = rememberRipple (),
259
+ indication = ripple (),
260
260
onClick = { onItemClicked(index) },
261
261
onLongClick = { onItemLongClicked(index) }
262
262
)) {
@@ -334,7 +334,7 @@ private fun LazyListScope.listOfTags(
334
334
) { item ->
335
335
Column (modifier = Modifier .combinedClickable(
336
336
interactionSource = remember { MutableInteractionSource () },
337
- indication = rememberRipple (),
337
+ indication = ripple (),
338
338
onClick = {},
339
339
onLongClick = { viewModel.onTagLongClick(item) }
340
340
)) {
@@ -389,7 +389,7 @@ private fun LazyListScope.listOfAttachments(
389
389
.fillMaxWidth()
390
390
.combinedClickable(
391
391
interactionSource = remember { MutableInteractionSource () },
392
- indication = rememberRipple (),
392
+ indication = ripple (),
393
393
onClick = { viewModel.openAttachment(item) },
394
394
onLongClick = { viewModel.onAttachmentLongClick(item) },
395
395
)
0 commit comments