changeCustomThemeMode method

dynamic changeCustomThemeMode(
  1. FTxCustomThemeType? themeType
)

Implementation

changeCustomThemeMode(FTxCustomThemeType? themeType) async {
  FTxCustomTheme.defaultThemeType = themeType!;
  SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
  await sharedPreferences.setInt("fx_custom_theme_mode", themeType.index);

  notifyListeners();
}