setThemeMode static method
Implementation
static void setThemeMode(ThemeMode themeMode) {
SpUtil.putString(BaseConfig.theme, themeMode.name);
if (themeMode == ThemeMode.system) {
themeMode = Get.isPlatformDarkMode ? ThemeMode.dark : ThemeMode.light;
}
currentIsDark = themeMode == ThemeMode.dark;
Get.changeThemeMode(themeMode);
debugPrint('setThemeMode click setThemeMode=$themeMode,currentIsDark=$currentIsDark');
Get.forceAppUpdate();
}