components/badges library
Classes
- UBadgePosition
- Where the badge sits on the child.
- UBadgePositioned
- Positions a badge inside UBadgeWidget.
- UBadgeState
- State of UBadgeWidget.
- UBadgeWidget
-
Puts a badge (count, dot) on a corner of any widget.
UBadgeWidget(badgeContent: const Text("3"), child: const Icon(Icons.shopping_cart)) - ULetterBadge
-
Small rounded square with the first letter of label (avatars, steps).
ULetterBadge("Sina", background: Colors.teal, foreground: Colors.white)
Enums
- UBadgeAnimationType
- Badge appear animation: slide, fade, scale or none.
- UBadgeShape
- Badge shape: circle, square or pill.