AppBottomBar
unknown
kotlin
a year ago
735 B
13
Indexable
@Composable
fun AppBottomBar(navController: NavController) {
val bottomScreens = remember {
listOf(
BottomBarScreen.Main,
BottomBarScreen.Forecast
)
}
NavigationBar {
bottomScreens.forEach { screen ->
NavigationBarItem(
selected = screen == navController.currentDestination, // Что тут сделать то?)
onClick = { navController.navigate(screen) },
icon = {
Icon(
painter = painterResource(id = screen.iconId),
contentDescription = null
)
}
)
}
}
}
Editor is loading...
Leave a Comment