Skip to content

Badge

A Badge is a small visual indicator used to convey status, count, or emphasis. It often appears as a dot or number attached to another element such as an icon, button, or avatar.

Use Badges to highlight new activity, show the number of items (e.g., unread messages, cart items), or indicate status (e.g., online/offline, priority level). They are best kept simple and concise to avoid overwhelming the interface.

Common Alternative Names:
Pill, Tag, Label Indicator, Status Dot


Displays a number to indicate a count, such as unread messages, cart items, or pending tasks. Useful when the exact quantity matters to the user.


A minimal indicator, usually a small colored circle, signaling status or presence of new activity without specifying a number. Best for subtle alerts or real-time availability.


Attached to an icon (e.g., bell, inbox, chat), the badge highlights new activity. Works well when paired with recognizable symbols to quickly draw attention.


PropertyTypeDescription
labelStringRequired. The text to display in the badge.
paddingEdgeInsetsGeometry?Custom padding for the badge content. Default: horizontal: 8, vertical: 5
offsetOffset?Position offset for the badge when used with a child widget.
backgroundColorColor?Custom background color. If not provided, uses the type’s default color.
textColorColor?Custom text color. If not provided, uses the type’s default color.
textStyleTextStyle?Custom text style.
alignmentAlignmentGeometry?Alignment of the badge when used with a child widget.
childWidget?Optional child widget that the badge will be attached to.
iconWidget?Optional icon to display before the label text.
typeBadgeTypeType of badge (basic, success, warning, error, info). Default: basic
notificationBadgeSizeNotificationBadgeSizeType of NotificationBadgeSize (small, medium, large). Default: medium
maxLengthint?Maximum number of characters to display. Text will be truncated if longer.
overflowTextStringText to append when label is truncated. Default: ’…’