Skip to content

Badge - Status

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

Default badge style.


Badge with success styling.


Badge with warning styling.


Badge with error styling.


Badge with info styling.


Badge including an icon alongside the label.


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