add new featurs like new stat page

This commit is contained in:
Hamza-Ayed
2026-05-08 22:44:55 +03:00
parent efbc921273
commit 8f555691b9
33 changed files with 1194 additions and 585 deletions

View File

@@ -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();
}