showSuccessPopup function
Implementation
void showSuccessPopup(
BuildContext context, String title, String message, Function onConfirm) {
showModalBottomSheet(
context: context,
isScrollControlled: true,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(top: Radius.circular(20.r)),
),
builder: (context) => SuccessPopupBottomSheet(
title: title,
message: message,
onConfirm: onConfirm,
),
);
}