try fix waiting for image when already shown

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-08-05 21:40:15 +08:00
parent 72c198a1e9
commit bc039a31c5
4 changed files with 35 additions and 4 deletions

View File

@ -689,9 +689,12 @@ class OverlayDialogManager {
String showLoading(String text,
{bool clickMaskDismiss = false,
bool showCancel = true,
VoidCallback? onCancel}) {
final tag = _tagCount.toString();
_tagCount++;
VoidCallback? onCancel,
String? tag}) {
if (tag == null) {
tag = _tagCount.toString();
_tagCount++;
}
show((setState, close, context) {
cancel() {
dismissAll();