Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add getkeyboardHeight support ? #119

Open
qiaojun2016 opened this issue Sep 7, 2022 · 7 comments
Open

add getkeyboardHeight support ? #119

qiaojun2016 opened this issue Sep 7, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@qiaojun2016
Copy link

No description provided.

@qiaojun2016 qiaojun2016 added the enhancement New feature or request label Sep 7, 2022
@eggyot
Copy link

eggyot commented Sep 13, 2022

agree!

@MisterJimson
Copy link
Owner

Doesn't MediaQuery.of(context).viewInsets.bottom work for this?

@qiaojun2016
Copy link
Author

@MisterJimson
Thank you for your reply !Here's my problem
I have a a legacy project, in Android it set android:windowSoftInputMode="adjustPan|stateHidden",so MediaQuery.of(context).viewInsets.bottom always return 0.0. and I can not change android:windowSoftInputMode to adjustSize。

@dannydulai
Copy link

it also doesn't work if you want the final height of the keyboard -- MediaQuery.of(context).viewInsets.bottom will animate from 0 -> maxheight of keyboard.

@chuvanhoang888
Copy link

You can try use https://pub.dev/packages/keyboard_height_plugin get height keyboard

@dannydulai
Copy link

That one works well. It's my colleague who wrote it for my use case! :-)

@chuvanhoang888
Copy link

chuvanhoang888 commented Jul 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants