How would I go about adding a badge to a `Navigati...
# compose
m
How would I go about adding a badge to a
NavigationBarItem
of a Material 3 bottom navigation bar? My initial attempt was to just wrap it in a
Box
and overlay the badge, but it seems
NavigationBarItem
has to be placed directly in the
NavigationBar
, so I cannot do that.
1
Found the solution: Use a
BadgedBox
and set it as the icon parameter of the
NavigationBarItem
.