deleted useless code
parent
20f5c5e426
commit
72674a3552
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue