wintersoldier
02/15/2023, 9:28 AMBottomsheetscaffold
, It doesn't allow to apply scrim.
With ModalBottomSheetLayout
it expands only based on wrap content!Chris Fillmore
02/15/2023, 11:21 AMSpacer(Modifier.weight(1f))
to the end of the sheet contentwintersoldier
02/15/2023, 11:43 AMModalBottomSheetLayout(
sheetContent = {
LazyColumn(modifier = if(bottomsheetState.currentValue == ModalBottomSheetValue.Expanded) Modifier.weight(1f) else Modifier){
item {
repeat(100) {
Text(
text = "Content",
modifier = Modifier
.padding(all = 16.dp)
.fillMaxWidth()
.clickable {
},
)
}
}
}
},
sheetState = bottomsheetState,
) {
}
jossiwolf
02/15/2023, 4:02 PMModalBottomSheet
has a scrimColor
parameter. Changing the touch input area to diverge from the visual boundaries is not something we recommend and do not support.