Dot, count & overflow
An empty Badge is a dot; pass Text for a count, capping large values at 99+.
BadgedBox(badge = { Badge() }) {
Icon(Icons.Filled.Email, contentDescription = "Mail")
}
BadgedBox(badge = { Badge { Text("8") } }) {
Icon(Icons.Filled.Email, contentDescription = "Mail")
}
BadgedBox(badge = { Badge { Text("99+") } }) {
Icon(Icons.Filled.Email, contentDescription = "Mail")
}