Fixes on adnroid and ios

This commit is contained in:
Ivan Murashov
2018-05-21 23:59:29 +03:00
parent beb3732b63
commit 41fd167ab6
11 changed files with 46 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ class PurchaseSuccessScreen extends StatefulWidget {
final String app;
final SqliteHelper helper;
final Map details;
final List<Map> coupons;
final List<dynamic> coupons;
@override State createState() =>
new PurchaseSuccessScreenState(val, name, helper, app, details, coupons);
@@ -25,7 +25,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
PurchaseSuccessScreenState(
String sum, String username, SqliteHelper helper,
String app, Map details, List<Map> coupons
String app, Map details, List<dynamic> coupons
) : super(helper, app) {
this.sum = sum;
this.username = username;
@@ -35,7 +35,7 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
String sum, username;
Map details;
List<Map> coupons;
List<dynamic> coupons;
int bonusPlus = 0;
int bonusMinus = 0;
int currency;
@@ -56,8 +56,10 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
void initState() {
helper.getCurrency().then((currency) {
helper.getToken().then((token) {
this.currency = currency;
this.token = token;
setState(() {
this.currency = currency;
this.token = token;
});
});
});
super.initState();