79372407

Date: 2025-01-20 19:14:17
Score: 0.5
Natty:
Report link

Maybe you should adjust the screen with LocalConfiguration.current.screenHeightDp ? You can try something like this:

val sheetState = rememberModalBottomSheetState(
    skipPartiallyExpanded = true
)
val screenHeight = LocalConfiguration.current.screenHeightDp.dp

ModalBottomSheet(
        onDismissRequest = { /*your action*/ },
        sheetState = sheetState,
        tonalElevation = 72.dp,
        dragHandle = {}
    ) {
        Column(
            modifier = Modifier
                .heightIn(max = screenHeight * 0.93f)
                .fillMaxWidth()
        ) {
/* your modal content */
    }

0.93f - this is the maximum height to which the modal will expand. You can customize it according to your needs

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: joj