keyboard always scroll for opening both input fields

This commit is contained in:
Ivan Murashov
2018-04-01 21:45:12 +03:00
parent 6c098aa0b8
commit 17c0a953cf
4 changed files with 163 additions and 155 deletions

View File

@@ -456,7 +456,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
}
if (sumFocusNode.hasFocus) {
scrollController.animateTo(100.0, duration: new Duration(seconds: 1), curve: Curves.ease);
scrollController.animateTo(150.0, duration: new Duration(seconds: 1), curve: Curves.ease);
}
});
@@ -470,7 +470,7 @@ class PurchaseScreenState<T> extends BaseState<PurchaseScreen> {
}
if (bonusFocusNode.hasFocus) {
scrollController.animateTo(120.0, duration: new Duration(seconds: 1), curve: Curves.ease);
scrollController.animateTo(150.0, duration: new Duration(seconds: 1), curve: Curves.ease);
}
});