https://kotlinlang.org logo
#compose
Title
# compose
m

Manojna Chintapalli

12/20/2021, 11:50 PM
Hello, When using BottomSheetScaffold is there a way to HALF_EXPAND it similar to ModalBottomSheet? I see that it can be done using ModalBottomSheet, but the issue with using ModalBottomSheet is that when it is dismissed it disappears from the screen whereas BottomSheetScaffold can be shown at the bottom partially all the time. Thanks.
c

Colton Idle

12/21/2021, 3:17 PM
Hm. I'm doing this (partially visible bottom sheet at all times) and I looked at my code and I'm not doing anything special (it seems). The only thing that looks interesting is that I have this set
sheetPeekHeight = this.maxHeight.times(.33F),
Maybe you can do that? The bottomSheetScaffold is surrounded with this
Copy code
BoxWithConstraints(modifier = Modifier.fillMaxSize()) {
m

Manojna Chintapalli

12/21/2021, 7:45 PM
Hi! I'm showing a partial bottomsheet already, I want to expand it to half height before I expand it to full height similar to ModalBottomSheet, but by using BottomSheetScaffold since I want to show it partially all the time which is possible only with BottomSheetScaffold(sheetPeekHeight)
299 Views