init method
dynamic
init()
Implementation
init() async {
SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
int fxAppThemeMode = sharedPreferences.getInt("fx_app_theme_mode")??FxAppThemeType.light.index;
changeAppThemeMode(FxAppThemeType.values[fxAppThemeMode]);
// int fxCustomThemeMode = sharedPreferences.getInt("fx_custom_theme_mode")??FxAppThemeType.light.index;
// changeCustomThemeMode(FxCustomThemeType.values[fxCustomThemeMode]);
notifyListeners();
}