We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9bb8a0 commit bf9e1f8Copy full SHA for bf9e1f8
1 file changed
packages/android_alarm_manager_plus/example/lib/main.dart
@@ -82,6 +82,7 @@ class _AlarmHomePageState extends State<_AlarmHomePage> {
82
83
void _checkExactAlarmPermission() async {
84
final currentStatus = await Permission.scheduleExactAlarm.status;
85
+ if (!mounted) return;
86
setState(() {
87
_exactAlarmPermissionStatus = currentStatus;
88
});
@@ -91,7 +92,7 @@ class _AlarmHomePageState extends State<_AlarmHomePage> {
91
92
developer.log('Increment counter!');
93
// Ensure we've loaded the updated count from the background isolate.
94
await prefs?.reload();
-
95
96
97
_counter++;
98
0 commit comments