Vivek Sharma
02/11/2021, 3:26 PMModalBottomSheetLayout(
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 backDenis
02/11/2021, 3:35 PMsheetState
on back button pressVivek Sharma
02/11/2021, 3:40 PMAdam Powell
02/11/2021, 3:45 PMSe7eN
02/11/2021, 4:08 PMandroidx.activity:activity-compose:1.3.0-alpha02
to use the BackHandler
Adam mentioned. https://developer.android.com/jetpack/androidx/releases/activity#1.3.0-alpha02Vivek Sharma
02/11/2021, 5:22 PM