main, attempt to cancel future alarms when untoggled.

This commit is contained in:
me committed 2026-09-28 06:45:47 -07:00
1 parent 0659262e61
commit 4788cdd220
1 file changed
+5 -1
+5 -1
View File
@@ -305,7 +305,11 @@ class _HomeScreenState extends State<HomeScreen> {
} else { } else {
_alarmTimer?.cancel(); _alarmTimer?.cancel();
if (!Platform.isLinux) { if (!Platform.isLinux) {
await _notifications.cancel(id: _alarmId); // Notification Method
//await _notifications.cancel(id: _alarmId);
// Alarm Method
await Alarm.stop(_alarmId);
} }
_showSnack('Alarm cancelled.'); _showSnack('Alarm cancelled.');
} }