destructiveAlertTheme method

  1. @override
ShadAlertTheme destructiveAlertTheme()
override

Implementation

@override
ShadAlertTheme destructiveAlertTheme() {
  return ShadAlertTheme(
    iconPadding: const EdgeInsetsDirectional.only(end: 12),
    decoration: ShadDecoration(
      border: ShadBorder.all(
        color: colorScheme.destructive,
        radius: radius,
        padding: const EdgeInsets.all(16),
        width: 1,
      ),
    ),
    iconColor: colorScheme.destructive,
    titleStyle: effectiveTextTheme.p.copyWith(
      color: colorScheme.destructive,
      fontWeight: FontWeight.w500,
      height: 1,
    ),
    descriptionStyle: effectiveTextTheme.muted.copyWith(
      color: colorScheme.destructive,
    ),
  );
}