fix screen freeze bug when keyboard is shown and textfield doesn't move
this is the pr for fixing screen freeze when keyboard is shown and textfield doesn't move.
@HajimeNakahara sorry, but I didn't understand when it happens. Could you provide a more detailed explanation and an example? Thanks
Very useful, please merge @pichillilorenzo
@pichillilorenzo Step to reproduce:
-> Click on a textfield inside webview -> keyboard will be show up -> Click on another textfield -> Try to scroll bottom of page -> Can't scroll to bottom of page because total height of page is wrong now.
Very useful, please merge!
@kidwar I am still not able to replicate the issue.
If I use https://github.com/login as initial URL example of an InAppWebView, I'm able to switch between username and password text inputs and still scroll the page without any issue.
If I test the code of this pull request, when the keyboard shows up, it adds unnecessary scrollable empty space to the end of the webpage.
Please, if you can, post a complete code example that can replicate the issue, otherwise I cannot test and find the right solution for the problem, if it is a real problem of the WebView first of all.
@pichillilorenzo can you test with https://websitesandapps.co.uk/form.html as initial URL example
Video demo: flutter_inappwebview: 6.0.0-beta.24
https://github.com/pichillilorenzo/flutter_inappwebview/assets/12774573/3c184129-0b48-4f6b-9bde-db02a1adbca8
Any updates here?
something similar to the issue i have raised 2049?
@RMatushkin @kidwar @biner88 @HajimeNakahara Open your PR on the forked project here and I will merge. There is a new package now. zikzak_inappwebview