CLAlert.border constructor
CLAlert.border(})
Soft tinted variant — the default editorial style. 10% bg / 22% border of the supplied semantic color, IconBadge, primaryText for body.
Implementation
CLAlert.border(
String alertTitle,
String alertText, {
Key? key,
IconData? icon,
IconAlignment iconAlignment = IconAlignment.start,
Color? backgroundColor,
void Function()? onClose,
}) : this._(
key: key,
alertTitle,
alertText,
icon: icon,
iconAlignment: iconAlignment,
decoration: BoxDecoration(
color: (backgroundColor ?? const Color(0xFF0C8EC7)).withValues(alpha: 0.10),
border: Border.all(
color: (backgroundColor ?? const Color(0xFF0C8EC7)).withValues(alpha: 0.22),
width: 1,
),
),
radiusToken: _cardRadius,
foregroundColor: backgroundColor ?? const Color(0xFF0C8EC7),
onClose: onClose,
);