From 0938858eb906b2cc8ab21f0883e8a43b43143699 Mon Sep 17 00:00:00 2001 From: Myzel394 <50424412+Myzel394@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:59:38 +0200 Subject: [PATCH] fix: Make action destructive on iOS --- lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart b/lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart index e314513..b1411f4 100644 --- a/lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart +++ b/lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart @@ -265,6 +265,9 @@ class _ViewAlarmScreenState extends State { material: (context, _) => MaterialDialogActionData( icon: const Icon(Icons.delete_forever_rounded), ), + cupertino: (context, _) => CupertinoDialogActionData( + isDestructiveAction: true, + ), child: Text(l10n.location_removeAlarm_confirm), onPressed: () => Navigator.pop(context, true), ),