mattinger
04/24/2025, 1:40 PM@OptIn(ExperimentalMaterial3Api::class)
@Composable
@Preview
fun ModalBottomSheetPreview() {
ModalBottomSheet(
sheetState = rememberModalBottomSheetState(skipPartiallyExpanded = true),
onDismissRequest = {}
) {
Column(modifier = Modifier.verticalScroll(rememberScrollState())){
(0..100).forEach {
Text(text = "Text${it}")
}
}
}
}
mattinger
04/24/2025, 1:53 PMmattinger
04/24/2025, 4:55 PMstatusBarPadding()
modifier to the modifier i pass to ModalBottomSheet. That ensures that the scrim will cover the status bar and shift the sheet content down so that it won't overlap with the status bar.