Skip to content

Commit

Permalink
Set background color for bottom navigation and not item
Browse files Browse the repository at this point in the history
  • Loading branch information
sLee0306 committed Dec 17, 2023
1 parent 949217b commit 6185a9c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions app/src/main/java/com/sample/tmdb/ui/TMDbApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ private fun TMDbBottomBar(
val currentSection = tabs.first { it.route == currentRoute }

Box(
Modifier
.background(MaterialTheme.colors.background)
.navigationBarsPadding()
Modifier.navigationBarsPadding()
) {
BottomNavigation {
BottomNavigation(backgroundColor = MaterialTheme.colors.background) {
tabs.forEach { section ->
val selected = section == currentSection
BottomNavigationItem(
modifier = Modifier.background(MaterialTheme.colors.background),
label = {
Text(text = stringResource(id = section.title))
},
Expand Down

0 comments on commit 6185a9c

Please sign in to comment.