From 16731529a49bfdf4f2ad4e1ce1371ef752249938 Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Sat, 25 Feb 2023 08:35:46 +0100 Subject: [PATCH] Fixed Timezones Bug --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 36efb6c..16aa6f2 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,12 +1,13 @@ import 'package:flutter/material.dart'; import 'package:smoke_cess_app/pages/main_page.dart'; import 'package:smoke_cess_app/service/notification_service.dart'; +import 'package:timezone/data/latest.dart' as tz; void main() { // to ensure all the widgets are initialized. WidgetsFlutterBinding.ensureInitialized(); - // to initialize the notificationservice. + tz.initializeTimeZones(); NotificationService().initNotification(); runApp(const MyApp()); }