CLAlert.download constructor

CLAlert.download(
  1. String alertTitle,
  2. String alertText, {
  3. Key? key,
  4. IconData? icon,
  5. IconAlignment iconAlignment = IconAlignment.start,
  6. Color? backgroundColor,
  7. void onClose()?,
  8. required BehaviorSubject<double> downloadPercentageStream,
})

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,
      );