Fixed Timezones Bug

main
Kai Mannweiler 2023-02-25 08:35:46 +01:00
parent 3f3cc26325
commit 16731529a4
1 changed files with 2 additions and 1 deletions

View File

@ -1,12 +1,13 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:smoke_cess_app/pages/main_page.dart'; import 'package:smoke_cess_app/pages/main_page.dart';
import 'package:smoke_cess_app/service/notification_service.dart'; import 'package:smoke_cess_app/service/notification_service.dart';
import 'package:timezone/data/latest.dart' as tz;
void main() { void main() {
// to ensure all the widgets are initialized. // to ensure all the widgets are initialized.
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
// to initialize the notificationservice. tz.initializeTimeZones();
NotificationService().initNotification(); NotificationService().initNotification();
runApp(const MyApp()); runApp(const MyApp());
} }