Skip to content

Commit 19614ae

Browse files
authored
Merge pull request #30 from zzscc/master
解决loadingDialog偶尔不消失问题
2 parents cecb1dc + 726465d commit 19614ae

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/stream_packing/multi_state_widget.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ class _MultiStateWidgetState<T> extends State<MultiStateWidget> {
6868
hideDialog();
6969
result = ErrorPage();
7070
} else if (snap.data is ShowDialogState) {
71+
72+
7173
Future.microtask(() {
72-
hideDialogCallBack = LoadingDialog.showDialog(context);
74+
if(hideDialogCallBack == null){
75+
hideDialogCallBack = LoadingDialog.showDialog(context);
76+
}
7377
});
7478

7579
if (lastWidget != null) {

0 commit comments

Comments
 (0)