Skip to content

Commit

Permalink
fix: Make action destructive on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Sep 26, 2023
1 parent 6587c0d commit 0938858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/screens/view_alarm_screen_widgets/ViewAlarmScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,9 @@ class _ViewAlarmScreenState extends State<ViewAlarmScreen> {
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),
),
Expand Down

0 comments on commit 0938858

Please sign in to comment.