Skip to content

Commit

Permalink
Use alwaysShowLabel in NavigationBarItem
Browse files Browse the repository at this point in the history
Just like before, this shows the label only on the selected tab, but it comes with animation.

Change-Id: I14d50d2b587275ee9941b4ea7b20b505ecd78f71
  • Loading branch information
yaraki committed Feb 22, 2024
1 parent 6c59a22 commit 3851825
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ private fun HomeNavigationBar(
)
},
label = {
if (selected) {
Text(text = label)
}
Text(text = label)
},
alwaysShowLabel = false,
)
}
}
Expand Down

0 comments on commit 3851825

Please sign in to comment.