Примечание: это полностью развернутый нижний лист.

Код: Выделить всё
val state= rememberModalBottomSheetState(skipPartiallyExpanded = true)
ModalBottomSheet(
contentColor = MaterialTheme.colorScheme.onSurface,
modifier = Modifier
.fillMaxSize() // Ensure the sheet fills the entire screen
.safeDrawingPadding() // safepadding draw in the constraints statusbar/navigaitonbar
.padding(contentPadding), // Apply padding for showing below top bar
onDismissRequest = {
locationViewModel.removeLocationUpdates()
viewModel.hideBottomSheetLocation()
},
sheetState = bottomSheetLocationState,
) {
// Bottom sheet content
}
Кроме того, область заполнения не отображается, когда я устанавливаю skipPartiallyExpanded = false. Но то же самое мне нужно в полностью развернутом состоянии.
Подробнее здесь: https://stackoverflow.com/questions/791 ... -without-p