theapache64
08/23/2021, 3:09 PMbottomSheet
🧵bottomSheet
(Material Navigation)?
Can i use the navigation
method?
ModalBottomSheetLayout{
NavHost{
composable("home"){}
bottomSheet("detail"){
navigation { ⬅️
composable("a") {}
composable("b") {}
composable("c") {}
}
}
composable("about"){}
}
}
or should I use nested NavHost
?
ModalBottomSheetLayout{
NavHost{
composable("home"){}
bottomSheet("detail"){
NavHost { ⬅️
composable("a") {}
composable("b") {}
composable("c") {}
}
}
composable("about"){}
}
}
🤔Ian Lake
08/23/2021, 3:17 PMtheapache64
08/23/2021, 3:18 PMIan Lake
08/23/2021, 4:07 PMtheapache64
08/23/2021, 4:08 PMc
to about
, and when I press back from about
, I need to go back to c
, What’s the best way to do that?
Also note that, I can also go to about
from home
. Basically, about
should be accessible from anywhere.
so what would be the best approach to do this?Ian Lake
08/23/2021, 4:14 PMFloatingWindow
destination like your bottom sheet on the back stacktheapache64
08/23/2021, 4:21 PMThis is the same conversation we’ve already had, isn’t it?Yes 😬
You can’t put aIs there anyyyyy way I can make a regular destination transparent? I know its not available right now, but would it be possible if I raise a feature request? OR it’s completely impossible with respect to navigation lib’s current architecture and i shouldn’t expect that feature in future versions? 😐destination like your bottom sheet on the back stackFloatingWindow
Ian Lake
08/23/2021, 4:25 PMdialog
destination if you want it to be displayed above other floating windows and regular destinationstheapache64
08/23/2021, 4:53 PMdialog
will be removed, right? means, when i nav back it won’t go to the dialog
but the previous regular destination. isn’t it ? 🤔Ian Lake
08/23/2021, 5:03 PMabout
could be a dialog
destination, then you could navigate to it from your bottom sheet and go back to your bottom sheet when it closestheapache64
08/23/2021, 5:16 PMdialog
destination. Didn’t see this in documentation either. Is this new?Ian Lake
08/23/2021, 5:17 PMtheapache64
08/23/2021, 5:18 PMColton Idle
08/24/2021, 2:12 PMtheapache64
08/31/2021, 8:22 AMdialog
would fix, but dialogs
are also not back-navigate-able from a regular destinationColton Idle
08/31/2021, 2:21 PMtheapache64
08/31/2021, 2:47 PMdialog
destination and saveState/restoreState
flags. The problem is, we’ll need to na*vigate to the previous screen to navigate back the dialog*.Colton Idle
08/31/2021, 2:51 PM"@theapache64 curious if you figured out your issue. Let me know!"I was curious if you knew something I didn't know about it. lol. If anything... I think there are a few other libs for navigation. Zach Klippenstein (he/him) [MOD] has one I believe, and decompose is another mpp nav lib I think too.
theapache64
08/31/2021, 3:01 PMdialog
from regular destination which is impossible at the moment 😄Colton Idle
08/31/2021, 3:13 PMtheapache64
08/31/2021, 3:14 PM