darkTheme property
Dark theme for the Kohler brand
Implementation
static ThemeData get darkTheme {
final theme = _createTheme(
ThemeData.from(
colorScheme: darkColorScheme,
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()],
);
}