feat: deliver RSchedule service login exams and elastic glass navigation
This commit is contained in:
@@ -8,6 +8,7 @@ import '../services/notification_service.dart';
|
||||
import '../services/calendar_service.dart';
|
||||
import '../domain/schedule_engine.dart';
|
||||
import '../data/demo_schedule.dart';
|
||||
import '../domain/exam_schedule.dart';
|
||||
|
||||
class AppController extends ChangeNotifier {
|
||||
AppController(this.store, this.notifications, this.calendar, this.clock);
|
||||
@@ -174,6 +175,13 @@ class AppController extends ChangeNotifier {
|
||||
}
|
||||
await _cleanupCalendar();
|
||||
});
|
||||
Future<void> applyExams(ExamSchedule value) => _run(() async {
|
||||
final validated = ExamSchedule.fromJson(value.toJson());
|
||||
await _save(snapshot.copyWith(examSchedule: validated));
|
||||
});
|
||||
Future<void> clearExams() => _run(() async {
|
||||
await _save(snapshot.copyWith(clearExams: true));
|
||||
});
|
||||
Future<void> disableCalendar({required bool deleteEvents}) => _run(() async {
|
||||
await _save(
|
||||
snapshot.copyWith(
|
||||
|
||||
Reference in New Issue
Block a user