altDarkTheme property

ThemeData get altDarkTheme

Alternate dark theme with black background for the Kohler brand

Implementation

static ThemeData get altDarkTheme {
  final theme = _createTheme(
    ThemeData.from(
      colorScheme: darkColorScheme.copyWith(
        surfaceContainerLowest: Colors.black,
        scrim: const Color(0xcc1b1b1f),
      ),
      textTheme: textTheme,
      useMaterial3: true,
    ),
  );

  return theme.copyWith(
    // Primary text theme for Kohler energy dark blue should be white,
    // same as the text theme. Flutter uses text theme for surface by default
    primaryTextTheme: theme.textTheme,
    extensions: [...theme.extensions.values, AppColors.dark()],
  );
}