showProgress function
Displays a loading dialog to the user.
This function shows a custom loading dialog with an activity indicator and a message "Please wait...". It prevents the user from interacting with the rest of the UI while the dialog is visible.
context
: The BuildContext used to display the dialog.
Implementation
void showProgress(BuildContext context) {
showDialog(
context: context,
builder: (context) => const _CustomLoadingDailog(),
);
}