add getkeyboardHeight support ?
qiaojun2016 opened this issue · 7 comments
qiaojun2016 commented
add getkeyboardHeight support ?
eggyot commented
agree!
MisterJimson commented
Doesn't MediaQuery.of(context).viewInsets.bottom
work for this?
qiaojun2016 commented
@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 commented
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 commented
You can try use https://pub.dev/packages/keyboard_height_plugin get height keyboard
dannydulai commented
That one works well. It's my colleague who wrote it for my use case! :-)
chuvanhoang888 commented
Hello Sir,
I am using your keyboard height plugin package for my project, but i am
having problem not able to run it on flutter version 3.3.10 - sdk 2.18.6 ,
can you downgrade the version. Keyboard height plugin use sdk >= 2.19.6
Thank you.
Vào 19:05, Th 5, 20 thg 7, 2023 Danny Dulai ***@***.***> đã
viết:
… That one works well. It's my colleague who wrote it for my use case! :-)
—
Reply to this email directly, view it on GitHub
<#119 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY5GZ2GQRBERNTQN5L6IVJ3XRENJPANCNFSM6AAAAAAQGKPCF4>
.
You are receiving this because you commented.Message ID:
***@***.***
com>