CLAlert.solid constructor

CLAlert.solid(
  1. String alertTitle,
  2. String alertText, {
  3. Key? key,
  4. IconData? icon,
  5. IconAlignment iconAlignment = IconAlignment.start,
  6. Color? backgroundColor,
  7. Color? foregroundColor,
  8. void onClose()?,
})

Solid (filled) variant. Background color saturates to the semantic tone; foreground stays light. Kept for high-emphasis system messages.

Implementation

CLAlert.solid(
  String alertTitle,
  String alertText, {
  Key? key,
  IconData? icon,
  IconAlignment iconAlignment = IconAlignment.start,
  Color? backgroundColor,
  Color? foregroundColor,
  void Function()? onClose,
}) : this._(
        key: key,
        alertTitle,
        alertText,
        icon: icon,
        iconAlignment: iconAlignment,
        decoration: BoxDecoration(color: backgroundColor),
        radiusToken: _cardRadius,
        foregroundColor: foregroundColor ?? Colors.white,
        onClose: onClose,
      );