Hello, When using BottomSheetScaffold is there a w...
# compose
m
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
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
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)
367 Views