1.0.0 #2
+5
-1
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user