Clament John
11/16/2021, 5:09 AMgif▾
Clament John
11/16/2021, 5:15 AMNavHost
inside the Scaffold content to tell the system you want to switch composables inside the layout with the bottomBar
.
This is the main issue. How can I have a parent NavHost with other routes and a Home route with its own NavHost
. This won't work as we can't have nested NavHostsClament John
11/16/2021, 5:27 AMUse a single scaffold and set, unset appbar, bottomNavBar
https://kotlinlang.slack.com/archives/CJLTWPH7S/p1627998794388300?thread_ts=1627934500.323000&cid=CJLTWPH7SClament John
11/16/2021, 5:39 AMIan Lake
11/16/2021, 6:39 AMClament John
11/16/2021, 7:01 AMif (currentScreen == Screens.WithBottomSheet) {}
else if (currentScreen == Screen.WithBottomNav) {}
Is this fine? Does it have performance drawbacks?
Also I'll need to remember both Scaffold and BottomSheetScaffold states throughout the appplicationK Merle
11/16/2021, 7:49 AM