Tash
04/13/2023, 8:54 AMModalBottomSheetLayout
to expand to anything above 50% in the HalfExpanded
state? Right now I have something like this, but it only expands to 50% when I would like it to expand to 70%, or expand a little more than 50% to “wrap” the content’s height so that it doesn’t get cut off (using version 1.4.1)
val sheetState = rememberModalBottomSheetState(
initialValue = HalfExpanded,
skipHalfExpanded = false
)
ModalBottomSheetLayout(
sheetState = sheetState
sheetContent = {
Column(Modifier.fillMaxHeight(0.7f)) { /** content **/ }
}
)
Joel Denke
04/13/2023, 9:56 AMTash
04/13/2023, 10:00 AMHalfExpanded
-> 70% screen height, and Expanded
-> 100% screen heightJoel Denke
04/13/2023, 10:21 AMTash
04/13/2023, 10:36 AMExpanded
? I can try that...want to avoid copying over all of the sheet Composable just to customize this 😅Joel Denke
04/13/2023, 1:12 PMTash
04/13/2023, 5:53 PMjossiwolf
04/13/2023, 8:12 PMjossiwolf
04/13/2023, 8:13 PMTash
04/13/2023, 8:14 PMExpanded
state’s height via a Modifier.height
work, or cause more issues? 🤔jossiwolf
04/13/2023, 8:17 PMTash
04/13/2023, 8:22 PM