issue 10730

This commit is contained in:
Ivan Murashov
2018-02-13 01:06:03 +03:00
parent 36c2270f3e
commit db75d2b35f
11 changed files with 60 additions and 78 deletions

View File

@@ -45,7 +45,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
setState(() {
requestAsyncData(user);
});
return getMainWidget();
return new WillPopScope(onWillPop: onWillPop, child: getMainWidget());
}
bool purchaseInProgress = false;
@@ -423,4 +423,8 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
print('kifio ' + this.loyalty);
print('bonus ' + this.bonus);
}
onWillPop() {
return startScanner(context, app, helper);
}
}