close msgbox if loading

This commit is contained in:
open-trade
2020-11-26 21:41:25 +08:00
parent b311ce8692
commit 43452f48d9
3 changed files with 13 additions and 8 deletions

View File

@@ -13,7 +13,10 @@ class MyTheme {
static const Color border = Color(0xFFCCCCCC);
}
void showLoading(String text) {
void showLoading(String text, BuildContext context) {
if (_hasDialog) {
Navigator.pop(context);
}
dismissLoading();
EasyLoading.show(status: text);
}