This repository was archived by the owner on Aug 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Keyboard height problem #45
Comments
I have the same issue. This given height of the keyboard is obviously incorrect. |
On Android, I get actually 218, but I expect 249, which is the value of EdgeInsets.fromWindowPadding(WidgetsBinding.instance!.window.viewInsets,WidgetsBinding.instance!.window.devicePixelRatio).bottom |
I'm getting wrong keyboard height on: |
Okay, I found a solution. My solution above will only work on Android 10 and below, so do not use it. To make the keyboard height of this package work I use this: willShowKeyboard: (double keyboardHeight) {
if(Platform.isAndroid){
keyboardHeight += WidgetsBinding.instance!.window.viewPadding.top / WidgetsBinding.instance!.window.devicePixelRatio;
}
print('keyboard height: $keyboardHeight');
} Hope that helps anybody. |
My keyboard works well only on debug mode. Devices tested on: |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am not getting keyboard height properly.
The text was updated successfully, but these errors were encountered: