dark static method
Generate a dark theme with optional custom colors
Implementation
static ThemeData dark([SACThemeConfig? config]) {
final colors = _resolveColors(config, true);
final darkScheme = ColorScheme.fromSeed(
seedColor: colors.primary,
brightness: Brightness.dark,
primary: colors.primary,
secondary: colors.secondary,
surface: colors.surface,
error: colors.error,
onPrimary: AppColors.white,
onSecondary: AppColors.black,
onSurface: colors.textPrimary,
onError: AppColors.white,
);
return _buildTheme(
brightness: Brightness.dark,
colors: colors,
scheme: darkScheme,
config: config,
);
}