showLoadingDialog static method

Future showLoadingDialog(
  1. BuildContext context
)

Implementation

static Future<dynamic> showLoadingDialog(BuildContext context) {
  return showGeneralDialog(
    context: context,
    barrierColor: const Color(0xff202020),
    // Background color
    barrierDismissible: false,
    barrierLabel: 'Dialog',
    transitionDuration: const Duration(milliseconds: 300),
    pageBuilder: (_, __, ___) {
      return WillPopScope(
        onWillPop: () async => false,
        child: const DialogLoading(),
      );
    },
  );
}