showConfirmPopup function
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,
),
);
}