From 72674a35526425130eee371264729c353ad6d5fd Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Sun, 26 Feb 2023 22:49:01 +0100 Subject: [PATCH] deleted useless code --- lib/services/date_service.dart | 9 --------- lib/services/notification_service.dart | 23 ----------------------- lib/widgets/mood_form.dart | 4 ---- 3 files changed, 36 deletions(-) diff --git a/lib/services/date_service.dart b/lib/services/date_service.dart index 61e0567..0fd108e 100644 --- a/lib/services/date_service.dart +++ b/lib/services/date_service.dart @@ -13,15 +13,6 @@ const weekDays = { "Sonntag": 7, }; -Future> getDatesforAll() async { - List allDates = []; - List moodDates = await getDatesforMood(); - List sleepDates = await getDatesforSleep(); - allDates.addAll(moodDates); - allDates.addAll(sleepDates); - return allDates; -} - Future> getDatesforMood() async { final List? selectedDays = await getMoodQueryDaysCategories(); final int? selectedHours = await getMoodQueryHours(); diff --git a/lib/services/notification_service.dart b/lib/services/notification_service.dart index ea65122..2de386c 100644 --- a/lib/services/notification_service.dart +++ b/lib/services/notification_service.dart @@ -36,29 +36,6 @@ class NotificationService { await flutterLocalNotificationsPlugin.initialize(initializationSettings); } - Future showNotification() async { - await flutterLocalNotificationsPlugin.show( - 0, - 'test', - 'test', -//schedule the notification to show after 2 seconds. - const NotificationDetails( - // Android details - android: AndroidNotificationDetails('main_channel', 'Main Channel', - channelDescription: "ashwin", - importance: Importance.max, - priority: Priority.max), - // iOS details - iOS: DarwinNotificationDetails( - sound: 'default.wav', - presentAlert: true, - presentBadge: true, - presentSound: true, - ), - ), - ); - } - Future setAllNotifications() async { List moodDates = await getDatesforMood(); List sleepDates = await getDatesforSleep(); diff --git a/lib/widgets/mood_form.dart b/lib/widgets/mood_form.dart index 0f73c79..a997d01 100644 --- a/lib/widgets/mood_form.dart +++ b/lib/widgets/mood_form.dart @@ -12,10 +12,6 @@ import 'elevated_card.dart'; class MoodForm extends StatelessWidget { const MoodForm({super.key}); - void submitForm(BuildContext context) { - var inputModel = context.watch(); - } - @override Widget build(BuildContext context) { var inputModel = context.watch();