Skip to content

Commit

Permalink
fix: fixed flutter analyze errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansen856 committed Jan 12, 2025
1 parent c72e937 commit 604c4e2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:permission_handler/permission_handler.dart';

Expand All @@ -18,7 +19,7 @@ class PermissionController extends GetxController {
isNotificationGranted.value =
await Permission.notification.status.isGranted;
} catch (e) {
print('Error checking permissions: $e');
debugPrint('Error checking permissions: $e');
}
}

Expand All @@ -41,7 +42,7 @@ class PermissionController extends GetxController {
Get.offNamed('/home');
}
} catch (e) {
print('Error requesting permissions: $e');
debugPrint('Error requesting permissions: $e');
} finally {
isLoading.value = false;
}
Expand All @@ -51,7 +52,7 @@ class PermissionController extends GetxController {
try {
await Get.offNamed('/home');
} catch (e) {
print('Error opening settings: $e');
debugPrint('Error opening home screen: $e');
}
}
}

0 comments on commit 604c4e2

Please sign in to comment.