I was using ModalBottomSheet like this:
ModalBottomSheetLayout(
sheetContent = {
// sheet content
}
) {
// content of rest of the screen
}
So when I trigger
modalBottomSheetState.show()
, sheet gets visible and blocks screen behind it but the
back button is not closing the sheet
So I created composable and added it to navigation, but now sheet is
taking fullscreen, regardless of sheet content and modifier.height()
, so how can I achieve behaviour like bottom sheet blocking back screen and navigating back