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),
|
||||
|
||||
Reference in New Issue
Block a user