Я пытаюсь отключить прокрутку, отбросить поведение ModalbottomSheet. Я попытался поиграть с MampleModalBottomSheetState, но не успел найти какое -либо решение этой проблемы. < /P>
val bottomSheetState =
rememberModalBottomSheetState(skipPartiallyExpanded = true, confirmValueChange = { newState ->
newState != SheetValue.Hidden // **** Prevents hiding of the sheet *****
})
val configuration = LocalConfiguration.current
val screenHeight = configuration.screenHeightDp.dp
val sheetHeight = screenHeight * 0.8f
var firstQuestionText by remember{ mutableStateOf(TextFieldValue("")) }
var secondQuestionText by remember { mutableStateOf(TextFieldValue("")) }
ModalBottomSheet(
onDismissRequest = onDismissRequest,
sheetState = bottomSheetState,
modifier = Modifier
.fillMaxWidth(),
sheetMaxWidth = Dp.Unspecified,
containerColor = Color.White,
dragHandle = null,
) {
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... croll-down