Bottom sheet: initial state must be Hidden else there is no animation when opening the bottom sheet.

This commit is contained in:
Benoit Marty
2026-06-19 09:19:04 +02:00
parent 33e2f72792
commit 82c6167441
17 changed files with 17 additions and 17 deletions
@@ -41,7 +41,7 @@ fun SimpleModalBottomSheet(
onDismissRequest = onDismiss,
modifier = modifier,
sheetState = rememberBottomSheetState(
initialValue = SheetValue.Expanded,
initialValue = SheetValue.Hidden,
enabledValues = setOf(SheetValue.Hidden, SheetValue.Expanded),
),
scrollable = false,
@@ -59,7 +59,7 @@ fun ModalBottomSheet(
scrollable: Boolean,
modifier: Modifier = Modifier,
sheetState: SheetState = rememberBottomSheetState(
initialValue = SheetValue.Expanded,
initialValue = SheetValue.Hidden,
),
shape: Shape = BottomSheetDefaults.ExpandedShape,
containerColor: Color = MaterialTheme.colorScheme.surface,