CLAlert.download constructor
CLAlert.download(})
Download variant — same soft tone as border, with a circular progress
indicator in place of the IconBadge.
Implementation
CLAlert.download(
String alertTitle,
String alertText, {
Key? key,
IconData? icon,
IconAlignment iconAlignment = IconAlignment.start,
Color? backgroundColor,
void Function()? onClose,
required BehaviorSubject<double> downloadPercentageStream,
}) : this._(
key: key,
alertTitle,
alertText,
icon: icon,
iconAlignment: iconAlignment,
downloadPercentageStream: downloadPercentageStream,
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,
);