showDeleteDialog static method
void
showDeleteDialog({
- required BuildContext context,
- required String title,
- required String subtitle,
- required String annulla,
- required String delete,
Implementation
static void showDeleteDialog({
required BuildContext context,
required String title,
required String subtitle,
required String annulla,
required String delete,
// required Function() loOugMethod;
}) {
BuildContext? dialogContext = NavigatorService.navigatorKey.currentContext;
if (dialogContext != null) {
} else {}
Dialogs.materialDialog(
msg: subtitle,
title: title,
context: context,
actions: [
IconsOutlineButton(
onPressed: () {
Navigator.of(context).pop();
// Navigator.of(dialogContext!).pop();
},
text: annulla,
iconData: Icons.cancel_outlined,
textStyle: TextStyle(color: Colors.grey),
iconColor: Colors.grey,
),
IconsButton(
onPressed: () async {},
text: delete,
iconData: Icons.delete,
color: Colors.red,
textStyle: TextStyle(color: Colors.white),
iconColor: Colors.white,
),
]);
}