Need fix error on purchase success showung.

This commit is contained in:
Ivan Murashov
2018-03-11 18:12:10 +03:00
parent 0c5645c059
commit 3bc43724c6
7 changed files with 47 additions and 56 deletions

View File

@@ -122,9 +122,10 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
return new EdgeInsets.only(bottom: bottom, left: side, right: side);
}
getScanButton() {
getScanButton() async {
String title = StringsLocalization.scan();
return buildRaisedButton(title, () => Navigator.of(context).pop());
String token = await helper.getToken();
return buildRaisedButton(title, () => Navigator.of(context).pop(token));
}