fix: NavigationBar-Höhe auf 56dp fixieren
This commit is contained in:
parent
32ed321df2
commit
4397159d62
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ package de.krisenvorrat.app.ui
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.Column
|
import androidx.compose.foundation.layout.Column
|
||||||
import androidx.compose.foundation.layout.consumeWindowInsets
|
import androidx.compose.foundation.layout.consumeWindowInsets
|
||||||
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.foundation.layout.padding
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.filled.SwapHoriz
|
import androidx.compose.material.icons.filled.SwapHoriz
|
||||||
|
|
@ -19,6 +20,7 @@ import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.hilt.navigation.compose.hiltViewModel
|
import androidx.hilt.navigation.compose.hiltViewModel
|
||||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||||
import androidx.navigation.NavDestination.Companion.hasRoute
|
import androidx.navigation.NavDestination.Companion.hasRoute
|
||||||
|
|
@ -72,7 +74,7 @@ internal fun MainScreen() {
|
||||||
},
|
},
|
||||||
bottomBar = {
|
bottomBar = {
|
||||||
if (showBottomBar) {
|
if (showBottomBar) {
|
||||||
NavigationBar {
|
NavigationBar(modifier = Modifier.height(56.dp)) {
|
||||||
TopLevelDestination.entries.forEach { destination ->
|
TopLevelDestination.entries.forEach { destination ->
|
||||||
val isSelected = currentDestination?.hasRoute(destination.route::class) == true
|
val isSelected = currentDestination?.hasRoute(destination.route::class) == true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue