Did you know?
The easiest way to add a badge to an IconButton
is to use the Badge
widget.
Use cases:
- show a notification count 🔔
- show a custom label 🏷️
Works great with BottomNavigationBarItem
and NavigationRailDestination
, too. 👍
For more info about Badge
, read:
Happy coding!