showProgress method
显示自定义对话框
Implementation
// Future showCustomDialog(Widget dialog, {bool barrierDismissible = true}) =>
// showCustomizeDialog(context, dialog,
// barrierDismissible: barrierDismissible);
void showProgress([String hintText = '正在处理...']) {
/// 避免重复弹出
if (mounted && !_isShowDialog) {
_isShowDialog = true;
showLoadingDialog(context, hintText: hintText, onWillPop: () async {
_isShowDialog = false;
return Future.value(true);
});
}
}