Satyam G
04/28/2022, 8:51 AMFilip Wiesner
04/28/2022, 9:20 AM"I don't want to add ModalBottomSheet to Activity instead I have added ModalBottomSheet inside 3rd Screen Composable." - it sounds like you know exactly what your problem is. Your 3rd screen composable doesn't go over the bottom bar, so nothing within that is going to ever go over the bottom bar.You have to structure your screen like this:
BottomSheetLayout {
Screen()
BottomNavBar()
}
I agree that it's not ideal but that's how bottom sheets work in Compose.
You could also try out Bottom Sheet Destinations from Accompanist if your bottom nav bar is inside your navigation routes.Satyam G
04/28/2022, 9:22 AMColton Idle
04/28/2022, 12:52 PMtad
04/29/2022, 2:16 AMBottomSheetHost
composable, similar to how Snackbar works, which decouples where the bottom sheet is "shown" from where it lives in the composition.Satyam G
04/29/2022, 4:03 AMColton Idle
04/29/2022, 3:38 PMtad
04/29/2022, 10:43 PMtad
04/29/2022, 10:46 PMBottomSheetHost { myAppContent() }
at the top level, then wherever you want a BottomSheet, call BottomSheet()
in the compositiontad
04/29/2022, 10:49 PMColton Idle
05/03/2022, 1:05 AM