Skip to content

Commit 56584d4

Browse files
authored
Modifying exclude so it does not contain positionalThreshold. (#483)
1 parent e97df7d commit 56584d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose/snippets/src/main/java/com/example/compose/snippets/components/SwipeToDismissBox.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ fun SwipeCardItem(
209209
modifier: Modifier = Modifier,
210210
content: @Composable (TodoItem) -> Unit
211211
) {
212-
// [START_EXCLUDE]
213212
val swipeToDismissState = rememberSwipeToDismissBoxState(
214213
positionalThreshold = { totalDistance -> totalDistance * 0.25f },
214+
// [START_EXCLUDE]
215215
confirmValueChange = {
216216
when (it) {
217217
SwipeToDismissBoxValue.StartToEnd -> {

0 commit comments

Comments
 (0)