Update compose bom and fix renovate config for it (#674)

(cherry picked from commit 843daa5304d0b1a93ba69f8cc69791e446a58596)

# Conflicts:
#	.github/renovate.json5
This commit is contained in:
FooIbar 2024-04-17 15:21:09 +08:00 committed by Jobobby04
parent d551619d9d
commit b24719a3e9
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,7 @@
[versions]
compiler = "1.5.11"
compose-bom = "2024.02.00-alpha02"
# 2024.04.00-alpha01 has several bugs with the new animateItem() modifier
compose-bom = "2024.03.00-alpha02"
accompanist = "0.35.0-alpha"
[libraries]

View File

@ -122,7 +122,7 @@ fun AdaptiveSheet(
)
}
val internalOnDismissRequest = {
if (anchoredDraggableState.currentValue == 0) {
if (anchoredDraggableState.settledValue == 0) {
scope.launch { anchoredDraggableState.animateTo(1) }
}
}
@ -192,7 +192,7 @@ fun AdaptiveSheet(
LaunchedEffect(anchoredDraggableState) {
scope.launch { anchoredDraggableState.animateTo(0) }
snapshotFlow { anchoredDraggableState.currentValue }
snapshotFlow { anchoredDraggableState.settledValue }
.drop(1)
.filter { it == 1 }
.collectLatest {