BadgeBox(badgeContent = { Text("8") }) {
Icon(
Icons.Filled.Favorite,
contentDescription = "Favorite"
)
}
I have a BadgeBox like this. But if the value is 0, I want to badge to disappear. If I pass null to badgeContent, the circle still shows but with nothing in it.
How do I hide it completely?