changeAppThemeMode method

dynamic changeAppThemeMode(
  1. FxAppThemeType? themeType
)

Implementation

changeAppThemeMode(FxAppThemeType? themeType) async {
  FxAppTheme.defaultThemeType = themeType!;
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  await sharedPreferences.setInt("fx_app_theme_mode", themeType.index);

  log(FxAppTheme.getThemeFromThemeMode().toString());
  notifyListeners();

}