fix mobile change theme failure

This commit is contained in:
csf
2023-03-06 23:37:43 +09:00
parent d4c8cbea87
commit 8a083f40b0
3 changed files with 3 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ class MyTheme {
static void changeDarkMode(ThemeMode mode) async {
Get.changeThemeMode(mode);
if (desktopType == DesktopType.main) {
if (desktopType == DesktopType.main || isAndroid || isIOS) {
if (mode == ThemeMode.system) {
await bind.mainSetLocalOption(key: kCommConfKeyTheme, value: '');
} else {