Merge branch '29-provider-refactoring' of https://gitlab.com/Crondung/hsma_cpd into 29-provider-refactoring

main
Julian Gegner 2023-02-27 01:20:06 +01:00
commit ec5f23845d
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>();