Skip to content

Commit 1c881fa

Browse files
committed
Remove extra delay in ModalBottomSheetDemo.kt
1 parent 989e1d0 commit 1c881fa

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

demo/src/commonMain/kotlin/ModalBottomSheetDemo.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ fun ModalBottomSheetDemo() {
5959
initialDetent = Peek,
6060
detents = listOf(Hidden, Peek, FullyExpanded),
6161
)
62-
LaunchedEffect(modalSheetState.isIdle, modalSheetState.currentDetent) {
63-
if (
64-
modalSheetState.isIdle &&
65-
modalSheetState.currentDetent == Hidden
66-
) {
67-
delay(1.seconds)
68-
modalSheetState.targetDetent = Peek
69-
}
70-
}
7162

7263
LaunchedEffect(
7364
modalSheetState.isIdle,

0 commit comments

Comments
 (0)