Theme Mode-System Default, Minor Changes & Logout Button #1

This commit is contained in:
2025-09-04 13:43:52 +05:30
parent a1ea60841e
commit 45dbf8464a
12 changed files with 66 additions and 63 deletions

View File

@@ -10,7 +10,7 @@ class ThemeModeCubit extends Cubit<ThemeModeState> {
Future<void> loadThemeMode() async {
final prefs = await SharedPreferences.getInstance();
final modeIndex = prefs.getInt('theme_mode') ?? 2; // default system
final modeIndex = prefs.getInt('theme_mode') ?? 0; // default system
final mode = ThemeMode.values[modeIndex];
emit(ThemeModeState(mode: mode));
}