showProcess static method

dynamic showProcess(
  1. BuildContext context,
  2. Color progressColor
)

Implementation

static showProcess(BuildContext context, Color progressColor) {
  return showDialog(
    barrierDismissible: false,
    context: context,
    builder: (context) {
      return Dialog(
        elevation: 0,
        backgroundColor: AppColors.transparent,
        child: WillPopScope(
          child: Center(
              child: CircularProgressIndicator(
            color: progressColor,
          )),
          onWillPop: () => Future.value(false),
        ),
      );
    },
  );
}