buildSolarizedTheme function
ThemeData
buildSolarizedTheme(
{ - dynamic light = bool,
})
Implementation
ThemeData buildSolarizedTheme({light = bool}) {
final ColorScheme cs = buildSolarized(light: light);
final ThemeData base = light ? ThemeData.light() : ThemeData.dark();
return base.copyWith(
primaryColor: cs.primary,
backgroundColor: cs.background,
scaffoldBackgroundColor: cs.surface,
buttonTheme: base.buttonTheme.copyWith(colorScheme: cs),
cardTheme: base.cardTheme.copyWith(color: cs.background),
colorScheme: cs.copyWith(secondary: cs.secondary),
);
}