add new featurs like new stat page
This commit is contained in:
@@ -25,7 +25,10 @@ class SettingController extends GetxController {
|
||||
isDarkMode = !isDarkMode;
|
||||
box.write('isDarkMode', isDarkMode);
|
||||
|
||||
// Update the theme using the LocaleController to ensure correct fonts are used
|
||||
// Switch theme instantly across the app
|
||||
Get.changeThemeMode(isDarkMode ? ThemeMode.dark : ThemeMode.light);
|
||||
|
||||
// Update the theme using the LocaleController to ensure correct fonts/colors are refreshed
|
||||
if (Get.isRegistered<LocaleController>()) {
|
||||
Get.find<LocaleController>().refreshTheme();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user