fix(navigation): show bottom bar on all screens except ConnectScreen
This commit is contained in:
@@ -193,7 +193,7 @@ fun MainNavigation() {
|
|||||||
NavigationController.updatePrimaryScreens(bottomNavKeys)
|
NavigationController.updatePrimaryScreens(bottomNavKeys)
|
||||||
}
|
}
|
||||||
|
|
||||||
val isPrimaryScreen = currentScreen in bottomNavKeys
|
val showBottomBar = currentScreen != ConnectScreen
|
||||||
val gesturesEnabled = currentScreen in DRAWER_GESTURE_SCREENS
|
val gesturesEnabled = currentScreen in DRAWER_GESTURE_SCREENS
|
||||||
val openDrawer = { scope.launch { drawerState.open() } }
|
val openDrawer = { scope.launch { drawerState.open() } }
|
||||||
|
|
||||||
@@ -293,7 +293,7 @@ fun MainNavigation() {
|
|||||||
Scaffold(
|
Scaffold(
|
||||||
contentWindowInsets = WindowInsets.navigationBars,
|
contentWindowInsets = WindowInsets.navigationBars,
|
||||||
bottomBar = {
|
bottomBar = {
|
||||||
if (isPrimaryScreen) {
|
if (showBottomBar) {
|
||||||
NavigationBar {
|
NavigationBar {
|
||||||
bottomNavItems.forEach { item ->
|
bottomNavItems.forEach { item ->
|
||||||
NavigationBarItem(
|
NavigationBarItem(
|
||||||
|
|||||||
Reference in New Issue
Block a user