showConfirmDialogWithRoute static method

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

Implementation

static void showConfirmDialogWithRoute({
  required BuildContext context,
  required String message,
  required String title,
  required String route,
}) {
  Dialogs.materialDialog(
      msg: message,
      title: title,
      color: Colors.white,
      context: context,
      actions: [
        SizedBox(width: 50),
        IconsOutlineButton(
          onPressed: () {
            NavigatorService.pushNamedAndRemoveUntil(route);
          },
          text: 'Ok',
          iconData: Icons.check_circle,
          textStyle: TextStyle(color: Colors.white),
          iconColor: Colors.white,
          color: Colors.green,
        ),
        SizedBox(width: 50)
      ]);
  return;
}