Hey, I have a function that draws a composable,
@Composable
fun home() : @Composable RowScope.() -> Unit {
return {
BottomNavigationItem(
icon = {
Icon(Icons.Filled.Home, "Home")
},
onClick = {},
selected = false,
label = {
Text("Home")
}
)
}
}
That doesn’t draw it to the GUI I am calling it with
@Composable
fun App() {
MaterialTheme {
BottomAppBar {
StaticAssets.BarButtons.home()
}
}
}
Does anyone know why it doesn’t work?
You must log in or # to comment.