showProgress function

void showProgress({
  1. required BuildContext context,
  2. String? text,
  3. required Color color,
  4. required Color textColor,
})

Implementation

void showProgress({
  required BuildContext context,
  String? text,
  required Color color,
  required Color textColor,
}) {
  showDialog(
    barrierDismissible: false,
    context: context,
    builder: (BuildContext context) {
      return WillPopScope(
        onWillPop: () async => false,
        child: Material(
          color: Colors.transparent,
          child: StaggeredDotsWaveWidget(
            text: text,
            color: color,
            textColor: textColor,
          ),
        ),
      );
    },
  );
}