Se7eN
09/17/2020, 10:27 AMScaffold
with BottomNavigation
and it looks like the bottom navigation bar is covering bodyContent
Scaffold(
topBar = {
TopAppBar(
title = { ... },
navigationIcon = { ... },
actions = { ... },
backgroundColor = MaterialTheme.colors.surface,
elevation = 0.dp
)
},
bodyContent = { ChatScreen(viewModel) },
bottomBar = {
BottomNavigation(
backgroundColor = MaterialTheme.colors.surface,
elevation = if (isSystemInDarkTheme()) 0.dp else 4.dp
) {
BottomNavigationItem(
icon = { ... },
selected = true,
onClick = {},
label = { ... },
)
BottomNavigationItem(
icon = { ... },
selected = false,
onClick = {},
label = { ... }
)
}
}
)
Is this a bug or am I doing something wrong?LazyColumnFor
and it's scrolled to the bottom in the imageTimo Drick
09/17/2020, 10:32 AMbodyContent = { innerPadding -> ChatScreen(innerpadding, viewModel) },
Modifier.padding(innerPadding)
Se7eN
09/17/2020, 10:36 AM