TAlertTheme.defaultTheme constructor

TAlertTheme.defaultTheme(
  1. ColorScheme colors
)

Creates a default theme derived from the context colors.

Implementation

factory TAlertTheme.defaultTheme(ColorScheme colors) {
  return TAlertTheme(
    backgroundColor: colors.surface,
    titleStyle: TextStyle(fontSize: 28, fontWeight: FontWeight.w400, color: colors.onSurfaceVariant),
    contentStyle: TextStyle(fontSize: 14, fontWeight: FontWeight.w300, color: colors.onSurface),
    closeButtonColor: AppColors.grey,
  );
}