Skip to content

Commit

Permalink
Notifications working fine
Browse files Browse the repository at this point in the history
  • Loading branch information
BrawlerXull committed Jun 2, 2024
1 parent ffb3d96 commit 9f131a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import 'package:flutter/material.dart';

import 'package:get/get.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:taskwarrior/app/utils/theme/app_settings.dart';

import 'app/routes/app_pages.dart';

void main() async {
WidgetsFlutterBinding.ensureInitialized();
await AppSettings.init();
await Permission.notification.isDenied.then((value) {
if (value) {
Permission.notification.request();
}
});
runApp(
GetMaterialApp(
title: "Application",
Expand Down

0 comments on commit 9f131a3

Please sign in to comment.