update crypto joys version
This commit is contained in:
@@ -78,7 +78,11 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
}
|
||||
|
||||
if (bonus.length > 0) {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonus(), bonus));
|
||||
if (app = 'crypto') {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.joys(), bonus));
|
||||
} else {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonus(), bonus));
|
||||
}
|
||||
}
|
||||
|
||||
widgetList.add(getHintLabel());
|
||||
@@ -126,6 +130,43 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
|
||||
getBonusInputField() {
|
||||
|
||||
if (app = 'crypto') {
|
||||
var bonusTextField = new EnsureVisibleWhenFocused(
|
||||
focusNode: _focusNodeBonus,
|
||||
child: new TextField(
|
||||
focusNode: _focusNodeBonus,
|
||||
keyboardType: TextInputType.number,
|
||||
decoration: new InputDecoration.collapsed(
|
||||
hintText: StringsLocalization.joysHint(),
|
||||
hintStyle: new TextStyle(color: greyTextColor, fontSize: 16.0)
|
||||
),
|
||||
controller: bonusController,
|
||||
onSubmitted: (String text) {
|
||||
setState(() {
|
||||
bonusController.text = text;
|
||||
});
|
||||
},
|
||||
textAlign: TextAlign.center,
|
||||
));
|
||||
} else {
|
||||
var bonusTextField = new EnsureVisibleWhenFocused(
|
||||
focusNode: _focusNodeBonus,
|
||||
child: new TextField(
|
||||
focusNode: _focusNodeBonus,
|
||||
keyboardType: TextInputType.number,
|
||||
decoration: new InputDecoration.collapsed(
|
||||
hintText: StringsLocalization.bonusHint(),
|
||||
hintStyle: new TextStyle(color: greyTextColor, fontSize: 16.0)
|
||||
),
|
||||
controller: bonusController,
|
||||
onSubmitted: (String text) {
|
||||
setState(() {
|
||||
bonusController.text = text;
|
||||
});
|
||||
},
|
||||
textAlign: TextAlign.center,
|
||||
));
|
||||
}
|
||||
var bonusTextField = new EnsureVisibleWhenFocused(
|
||||
focusNode: _focusNodeBonus,
|
||||
child: new TextField(
|
||||
@@ -161,7 +202,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
||||
top: 5.0
|
||||
),
|
||||
child: new Text(
|
||||
StringsLocalization.bonusExplanation(),
|
||||
(app = 'crypto')?" ":StringsLocalization.bonusExplanation(),
|
||||
textAlign: TextAlign.center,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: new TextStyle(color: greyTextColor, fontSize: 11.0),
|
||||
|
||||
@@ -89,10 +89,16 @@ class PurchaseSuccessScreenState<T> extends BaseState<PurchaseSuccessScreen> {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.buyer(), username));
|
||||
widgetList.add(getSuccessMessage());
|
||||
|
||||
if (bonusPlus > 0) {
|
||||
if (app != 'crypto') {
|
||||
if (bonusPlus > 0) {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonusPlus(), bonusPlus.toString()));
|
||||
}
|
||||
}
|
||||
if (bonusMinus > 0) {
|
||||
if (app = 'crypto') {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.joysMinus(), bonusMinus.toString()));
|
||||
}
|
||||
} else {
|
||||
widgetList.add(getValueWithDescription(StringsLocalization.bonusMinus(), bonusMinus.toString()));
|
||||
}
|
||||
|
||||
|
||||
@@ -145,4 +145,7 @@ class StringsLocalization {
|
||||
static String usageGuide() => strings['usage_guide'];
|
||||
static String commonGuide() => strings['common_guide'].replaceAll('\n', "\n");
|
||||
static String supportGuide(String phone, String url) => sprintf(strings['support_guide'], [phone, url]);
|
||||
}
|
||||
static String joys() => strings['joys'];
|
||||
static String joysMinus() => strings['joys_minus'];
|
||||
static String joysHint() => strings['joys_hint'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user