|
|
@ -80,8 +80,7 @@ fun NiaApp(windowSizeClass: WindowSizeClass) {
|
|
|
|
bottomBar = {
|
|
|
|
bottomBar = {
|
|
|
|
if (windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact) {
|
|
|
|
if (windowSizeClass.widthSizeClass == WindowWidthSizeClass.Compact) {
|
|
|
|
NiABottomBar(
|
|
|
|
NiABottomBar(
|
|
|
|
onNavigateToTopLevelDestination = niaTopLevelNavigation::navigateTo,
|
|
|
|
onNavigateToTopLevelDestination = niaTopLevelNavigation::navigateTo
|
|
|
|
currentDestination = currentDestination
|
|
|
|
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -143,8 +142,7 @@ private fun NiANavRail(
|
|
|
|
|
|
|
|
|
|
|
|
@Composable
|
|
|
|
@Composable
|
|
|
|
private fun NiABottomBar(
|
|
|
|
private fun NiABottomBar(
|
|
|
|
onNavigateToTopLevelDestination: (TopLevelDestination) -> Unit,
|
|
|
|
onNavigateToTopLevelDestination: (TopLevelDestination) -> Unit
|
|
|
|
currentDestination: NavDestination?
|
|
|
|
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
// Wrap the navigation bar in a surface so the color behind the system
|
|
|
|
// Wrap the navigation bar in a surface so the color behind the system
|
|
|
|
// navigation is equal to the container color of the navigation bar.
|
|
|
|
// navigation is equal to the container color of the navigation bar.
|
|
|
|