Skip to content

Commit

Permalink
Reset Calendar Preferences on Logout
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Apr 3, 2024
1 parent 07898e9 commit b0de24f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/onboardingComponent/viewModels/onboarding_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:campus_flutter/base/networking/protocols/api.dart';
import 'package:campus_flutter/base/networking/base/rest_client.dart';
import 'package:campus_flutter/base/routing/router_service.dart';
import 'package:campus_flutter/base/routing/routes.dart';
import 'package:campus_flutter/calendarComponent/services/calendar_color_service.dart';
import 'package:campus_flutter/onboardingComponent/model/confirm.dart';
import 'package:campus_flutter/onboardingComponent/services/onboarding_service.dart';
import 'package:campus_flutter/main.dart';
Expand All @@ -20,6 +21,7 @@ import 'package:go_router/go_router.dart';
import 'package:home_widget/home_widget.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:rxdart/rxdart.dart';
import 'package:shared_preferences/shared_preferences.dart';

final onboardingViewModel = Provider((ref) => OnboardingViewModel());

Expand Down Expand Up @@ -153,6 +155,7 @@ class OnboardingViewModel {
androidName: "widgets.calendar.CalendarWidget",
);
getIt<UserPreferencesService>().resetAll();
getIt<CalendarColorService>().resetColorPreferences();
Api.tumToken = "";
credentials.add(Credentials.none);
}
Expand Down

0 comments on commit b0de24f

Please sign in to comment.