primaryAlertTheme method

  1. @override
ShadAlertTheme primaryAlertTheme()
override

Implementation

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