keyboard always scroll for opening both input fields
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user