simplified code across the app and consolidated duplicated helpers
This commit is contained in:
@@ -54,11 +54,8 @@ class CustomEventSheet {
|
||||
),
|
||||
TextButton.icon(
|
||||
onPressed: () {
|
||||
showDeleteCustomEventDialog(context, event).future.then((
|
||||
_,
|
||||
) {
|
||||
if (!sheetCtx.mounted) return;
|
||||
Navigator.of(sheetCtx).pop();
|
||||
showDeleteCustomEventDialog(context, event).then((_) {
|
||||
if (sheetCtx.mounted) Navigator.of(sheetCtx).pop();
|
||||
});
|
||||
},
|
||||
label: const Text('Löschen'),
|
||||
|
||||
Reference in New Issue
Block a user