fix: build warnings

This commit is contained in:
particle-box
2026-01-28 00:49:47 +05:30
parent 79d1f9098a
commit ca35f68e88
2 changed files with 20 additions and 5 deletions

View File

@@ -205,15 +205,18 @@ class InAppOverlay(
-1 at -deviceWidth.toFloat()
0 at 0f
1 at deviceWidth.toFloat()
},
confirmValueChange = {
if (it == 0) return@AnchoredDraggableState true
toast.visible = false
true
}
)
}
val flingBehavior = AnchoredDraggableDefaults.flingBehavior(draggableState)
LaunchedEffect(draggableState) {
snapshotFlow { draggableState.currentValue }
.collect { value ->
if (value != 0) {
toast.visible = false
}
}
}
Box(
modifier = Modifier