themeLight method

void themeLight({
  1. ThemeData? data,
  2. Color? seed,
  3. bool? useMaterial3,
})

Implementation

void themeLight({ThemeData? data, Color? seed, bool? useMaterial3}) {
  HareApp.themeMode = ThemeMode.light;
  if (data != null) {
    HareApp.themeDataLight = data;
  } else if (seed != null) {
    ColorScheme cs = ColorScheme.fromSeed(seedColor: seed, dynamicSchemeVariant: DynamicSchemeVariant.fidelity, brightness: Brightness.light);
    HareApp.themeDataLight = ThemeData.from(colorScheme: cs, useMaterial3: useMaterial3);
  } else if (useMaterial3 != null) {
    HareApp.themeDataLight = ThemeData.light(useMaterial3: useMaterial3);
  }
  setState(() {});
}