TF-297 Fix can not back mailbox dashboard when reload page manage account

This commit is contained in:
dab246
2022-07-08 15:24:01 +07:00
committed by Dat H. Pham
parent 915498a890
commit 8a3c9f5e67
5 changed files with 17 additions and 7 deletions
+4
View File
@@ -18,6 +18,10 @@ void popBack({dynamic result}) {
Get.back(result: result);
}
bool canBack(BuildContext context) {
return Navigator.of(context).canPop();
}
BuildContext? get currentContext => Get.context;
BuildContext? get currentOverlayContext => Get.overlayContext;