Improve window insets handling

This commit is contained in:
vfsfitvnm
2022-08-17 13:00:16 +02:00
parent 59f66c5b65
commit ff860a007f
20 changed files with 84 additions and 105 deletions

View File

@@ -281,7 +281,7 @@ fun rememberBottomSheetState(
val coroutineScope = rememberCoroutineScope()
var previousAnchor by rememberSaveable {
mutableStateOf(if (isExpanded) expandedAnchor else collapsedAnchor)
mutableStateOf(if (isExpanded) expandedAnchor else dismissedAnchor)
}
return remember(dismissedBound, expandedBound, collapsedBound, coroutineScope) {