deleted useless code

main
Kai Mannweiler 2023-02-26 22:49:01 +01:00
parent 20f5c5e426
commit 72674a3552
3 changed files with 0 additions and 36 deletions

View File

@ -13,15 +13,6 @@ const weekDays = {
"Sonntag": 7,
};
Future<List<TZDateTime>> getDatesforAll() async {
List<TZDateTime> allDates = [];
List<TZDateTime> moodDates = await getDatesforMood();
List<TZDateTime> sleepDates = await getDatesforSleep();
allDates.addAll(moodDates);
allDates.addAll(sleepDates);
return allDates;
}
Future<List<TZDateTime>> getDatesforMood() async {
final List<String>? selectedDays = await getMoodQueryDaysCategories();
final int? selectedHours = await getMoodQueryHours();

View File

@ -36,29 +36,6 @@ class NotificationService {
await flutterLocalNotificationsPlugin.initialize(initializationSettings);
}
Future<void> 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<void> setAllNotifications() async {
List<TZDateTime> moodDates = await getDatesforMood();
List<TZDateTime> sleepDates = await getDatesforSleep();

View File

@ -12,10 +12,6 @@ import 'elevated_card.dart';
class MoodForm extends StatelessWidget {
const MoodForm({super.key});
void submitForm(BuildContext context) {
var inputModel = context.watch<InputProvider>();
}
@override
Widget build(BuildContext context) {
var inputModel = context.watch<InputProvider>();