correção de bugs, creação propria para turmas, e preparação para criar quizzes

This commit is contained in:
2026-05-15 12:40:38 +01:00
parent 62b9a107bc
commit 2775205f9e
14 changed files with 970 additions and 604 deletions

View File

@@ -32,10 +32,12 @@ class SettingsNotifier extends StateNotifier<SettingsState> {
SettingsNotifier()
: super(
SettingsState(
themeMode: ThemeService.getThemeMode(),
themeMode: ThemeMode.light,
isDarkModeAvailable: ThemeService.isDarkModeAvailable(),
),
);
) {
loadSettings();
}
/// Set theme mode
Future<void> setThemeMode(ThemeMode themeMode) async {
@@ -60,10 +62,8 @@ class SettingsNotifier extends StateNotifier<SettingsState> {
Future<void> resetSettings() async {
state = state.copyWith(isLoading: true);
await ThemeService.resetTheme();
state = state.copyWith(
themeMode: ThemeService.getThemeMode(),
isLoading: false,
);
final themeMode = await ThemeService.getStoredThemeMode();
state = state.copyWith(themeMode: themeMode, isLoading: false);
}
}