Skip to content

Commit dd60bc1

Browse files
committed
Skip partially expand for modal bottom sheet
1 parent 59144f3 commit dd60bc1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/src/main/java/com/orange/ouds/app/ui/components/bottomsheet/ModalBottomSheetDemoScreen.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import com.orange.ouds.core.theme.OudsTheme
4545
fun ModalBottomSheetDemoScreen() {
4646
val state = rememberModalBottomSheetDemoState()
4747
var modalBottomSheetVisible by rememberSaveable { mutableStateOf(false) }
48-
val sheetState = rememberModalBottomSheetState()
48+
val sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true)
4949
with(state) {
5050
Screen {
5151
Column(
@@ -76,7 +76,10 @@ fun ModalBottomSheetDemoScreen() {
7676
onDismissRequest = { modalBottomSheetVisible = false },
7777
sheetState = sheetState
7878
) {
79-
BottomSheetDemoContent(dragHandle = dragHandle, buttonLabel = stringResource(R.string.app_components_bottomSheet_modalBottomSheet_close_label)) {
79+
BottomSheetDemoContent(
80+
dragHandle = dragHandle,
81+
buttonLabel = stringResource(R.string.app_components_bottomSheet_modalBottomSheet_close_label)
82+
) {
8083
modalBottomSheetVisible = false
8184
}
8285
}

0 commit comments

Comments
 (0)