main, attempt to cancel future alarms when untoggled.
This commit is contained in:
1 parent
0659262e61
commit
4788cdd220
1 file changed
+5
-1
+5
-1
@@ -305,7 +305,11 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
} else {
|
||||
_alarmTimer?.cancel();
|
||||
if (!Platform.isLinux) {
|
||||
await _notifications.cancel(id: _alarmId);
|
||||
// Notification Method
|
||||
//await _notifications.cancel(id: _alarmId);
|
||||
|
||||
// Alarm Method
|
||||
await Alarm.stop(_alarmId);
|
||||
}
|
||||
_showSnack('Alarm cancelled.');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user