Skip to content

Badge - Count

A badge component that displays a label with optional styling variants, icons, and customizable appearance.

The Badges widget provides a flexible way to show labels with different styles and types. It supports various background colors, text styles, and can include icons.

  • Types: Success, Warning, Error, Info, Basic
  • Content Types: Text label with optional icon
  • Customizable: Supports custom styling, padding, and positioning

Badge with a large notification size.


Badge with a medium notification size.


Badge with a small notification size.


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