GlassBadge.dot constructor
const
GlassBadge.dot({
- required Widget child,
- Key? key,
- Color? dotColor = CupertinoColors.systemGreen,
- BadgePosition position = BadgePosition.topRight,
- LiquidGlassSettings? settings,
- GlassQuality? quality,
- String? semanticLabel,
Creates a dot badge (status indicator).
Use for online/offline status, active state indicators, etc.
semanticLabel overrides the default "Active" VoiceOver announcement:
GlassBadge.dot(
color: Colors.green,
semanticLabel: 'Online',
child: Avatar(...),
)
Implementation
const GlassBadge.dot({
required this.child,
super.key,
this.dotColor = CupertinoColors.systemGreen,
this.position = BadgePosition.topRight,
this.settings,
this.quality,
this.semanticLabel,
}) : isDot = true,
count = 0,
backgroundColor = null,
textColor = null,
showZero = false,
maxCount = 99,
semanticCount = null;