showPd method

Future<void> showPd(
  1. dynamic context,
  2. dynamic isNew,
  3. dynamic message
)

Implementation

Future<void> showPd(context, isNew, message) async {
  pd = ProgressDialog(
    context,
    type: ProgressDialogType.normal,
    isDismissible: true,
  );
  pd.style(
    padding: const EdgeInsets.all(20),
    elevation: 10,
    message: message ?? StringConst.PLEASE_WAIT,
    messageTextStyle: TextStyle(fontFamily: FONT_STYLE_QUICK_BOLD, fontSize: 14.sp),
    progressWidget: const SpinKitChasingDots(
      color: Colors.black,
      size: 20.0,
      duration: Duration(milliseconds: 1000),
    ),
    insetAnimCurve: Curves.easeInOut,
  );
  if (isNew) {
    await pd.show();
  }
}