keyboard fix variance 1
This commit is contained in:
@@ -12,7 +12,12 @@
|
|||||||
<key>Dinect-Crypto.xcscheme_^#shared#^_</key>
|
<key>Dinect-Crypto.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>8</integer>
|
<integer>7</integer>
|
||||||
|
</dict>
|
||||||
|
<key>Dinect.xcscheme</key>
|
||||||
|
<dict>
|
||||||
|
<key>orderHint</key>
|
||||||
|
<integer>11</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>Runner.xcscheme_^#shared#^_</key>
|
<key>Runner.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
|||||||
Binary file not shown.
@@ -34,9 +34,6 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
|
|
||||||
TextEditingController bonusController = new TextEditingController();
|
TextEditingController bonusController = new TextEditingController();
|
||||||
|
|
||||||
FocusNode _focusNodeSum = new FocusNode();
|
|
||||||
FocusNode _focusNodeBonus = new FocusNode();
|
|
||||||
|
|
||||||
bool isAutomaticallyImplyLeading() => false;
|
bool isAutomaticallyImplyLeading() => false;
|
||||||
|
|
||||||
PurchaseScreenState(SqliteHelper helper, String app, String userString, String card) : super(helper, app) {
|
PurchaseScreenState(SqliteHelper helper, String app, String userString, String card) : super(helper, app) {
|
||||||
@@ -122,18 +119,12 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
return new Column(children: <Widget>[
|
return new Container(child: new ListView(reverse: true,
|
||||||
new Expanded(
|
children: <Widget>[new Column(children: widgetList)].reversed.toList()));
|
||||||
child: new ListView(children: widgetList))
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getBonusInputField() {
|
getBonusInputField() {
|
||||||
|
var bonusTextField = new TextField(
|
||||||
var bonusTextField = new EnsureVisibleWhenFocused(
|
|
||||||
focusNode: _focusNodeBonus,
|
|
||||||
child: new TextField(
|
|
||||||
focusNode: _focusNodeBonus,
|
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: new InputDecoration.collapsed(
|
decoration: new InputDecoration.collapsed(
|
||||||
hintText: (app != 'crypto') ? StringsLocalization.bonusHint() : StringsLocalization.joysHint(),
|
hintText: (app != 'crypto') ? StringsLocalization.bonusHint() : StringsLocalization.joysHint(),
|
||||||
@@ -146,7 +137,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
));
|
);
|
||||||
|
|
||||||
return new Column(
|
return new Column(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
@@ -209,11 +200,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
getTextWidget() {
|
getTextWidget() {
|
||||||
// ?? TODO переделать, т.к. позволяет иметь только одно поле ввода на странице
|
return new TextField(
|
||||||
return new EnsureVisibleWhenFocused(
|
|
||||||
focusNode: _focusNodeSum,
|
|
||||||
child: new TextField(
|
|
||||||
focusNode: _focusNodeSum,
|
|
||||||
keyboardType: TextInputType.number,
|
keyboardType: TextInputType.number,
|
||||||
decoration: new InputDecoration.collapsed(
|
decoration: new InputDecoration.collapsed(
|
||||||
hintText: getHintString(),
|
hintText: getHintString(),
|
||||||
@@ -225,8 +212,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
autofocus: true
|
autofocus: true);
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
requestAsyncData(Map user) async {
|
requestAsyncData(Map user) async {
|
||||||
|
|||||||
Reference in New Issue
Block a user