showConfirmPopup function

void showConfirmPopup(
  1. BuildContext context,
  2. String title,
  3. String message,
  4. Function onConfirm,
)

Implementation

void showConfirmPopup(
    BuildContext context, String title, String message, Function onConfirm) {
  showModalBottomSheet(
    context: context,
    isScrollControlled: true,
    shape: const RoundedRectangleBorder(
      borderRadius: BorderRadius.vertical(top: Radius.circular(20)),
    ),
    builder: (context) => ConfirmationPopupBottomSheet(
      title: title,
      message: message,
      onConfirm: onConfirm,
    ),
  );
}