showAlertDialog static method

void showAlertDialog({
  1. required BuildContext context,
  2. required String message,
  3. required String title,
})

Implementation

static void showAlertDialog({
  required BuildContext context,
  required String message,
  required String title,
}) {
  Dialogs.materialDialog(
      msg: message,
      title: title,
      color: Colors.white,
      context: context,
      actions: [
        SizedBox(width: 50),
        IconsOutlineButton(
          onPressed: () {
            Navigator.of(context).pop();
          },
          text: 'Close',
          iconData: Icons.cancel_outlined,
          textStyle: TextStyle(color: Colors.grey),
          iconColor: Colors.grey,
        ),
        SizedBox(width: 50)
      ]);
  return;
}