showLoadingDialog function

Future<void> showLoadingDialog(
  1. BuildContext context, {
  2. bool useRootNavigator = false,
})

Implementation

Future<void> showLoadingDialog(
  BuildContext context, {
  bool useRootNavigator = false,
}) {
  return showDialog(
    barrierDismissible: false,
    context: context,
    useRootNavigator: useRootNavigator,
    builder: (context) {
      return const LoadingWidget();
    },
  );
}