Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Badge
const Badge({
super.key,
this.child,
this.type = BadgeType.dot,
this.size,
this.position = BadgePosition.topRight,
this.count,
this.label,
this.icon,
this.maxCount = 99,
this.showZero = false,
this.color,
this.foregroundColor,
this.borderColor,
this.dotBorderWidth,
this.overlap = 0,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
child | Widget? | No | null |
type | BadgeType | No | BadgeType.dot |
size | BadgeSize? | No | null |
position | BadgePosition | No | BadgePosition.topRight |
count | int? | No | null |
label | String? | No | null |
icon | Widget? | No | null |
maxCount | int | No | 99 |
showZero | bool | No | false |
color | Color? | No | null |
foregroundColor | Color? | No | null |
borderColor | Color? | No | null |
dotBorderWidth | double? | No | null |
overlap | double | No | 0 |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/data_display/badge/badge.dart
This reference is generated from the Badge declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

