fix on close alert in loading

This commit is contained in:
open-trade
2020-11-26 22:48:15 +08:00
parent 43452f48d9
commit 2a9ff10eae
3 changed files with 6 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ class MyTheme {
}
void showLoading(String text, BuildContext context) {
if (_hasDialog) {
if (_hasDialog && context != null) {
Navigator.pop(context);
}
dismissLoading();