списание бонусов при покупке(часть)

This commit is contained in:
Semyon Babushkin
2017-10-27 20:10:33 +03:00
parent d1391be307
commit e5b7a6b875
8 changed files with 342 additions and 253 deletions

View File

@@ -144,6 +144,7 @@ startScanner(BuildContext context, String app, SqliteHelper helper) async {
String userString = call.arguments[0];
print(userString);
String card = call.arguments[1];
print('$userString, $card');
var route = new MaterialPageRoute<Null>(
builder: (BuildContext context) =>
new PurchaseScreen(helper, app, userString, card));
@@ -155,7 +156,7 @@ startScanner(BuildContext context, String app, SqliteHelper helper) async {
});
platform.invokeMethod('startScanner', {
'token': await platform.invokeMethod('getAppToken'),
'token': token,
'url': await platform.invokeMethod('getEndpoint'),
'appToken': await platform.invokeMethod('getAppToken'),
'locale': Intl.defaultLocale,