Fixes on adnroid and ios
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user