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

Android keyboard entrance does not resize webview size (from version 0.3.1) #379

Closed
jameshp opened this issue Apr 10, 2019 · 4 comments
Closed

Comments

@jameshp
Copy link
Contributor

jameshp commented Apr 10, 2019

I have a web page with a text input field.
From package Version 0.3.1 onwards, the webview sizes does not change when the keyboard is entered. This leads to the fact that the textinput field is hidden behind the keyboard.

In Version 0.3.0+2 this works fine.
Select text input field, keyboard is shown, webview is resized to visible area and text input box stays visible. This is the standard android behavior I know.

In 0.3.1 a change "Fix height of keyboard" was introduced, which might be the reason?

0.3.0+2 version (working)

screenshot-1554898203582

screenshot-1554898210900

0.3.1 version (not working)

screenshot-1554898263735

image

@jameshp
Copy link
Contributor Author

jameshp commented Apr 10, 2019

I have double checked and the changed behavior comes from: #272

the setting: "resizeToAvoidbottomInset" keeps or changes depending on the flag the size if a keyboard is shown. Now it is always false on the WebviewScaffold Widget and therefore not resizing on keyboard inputs.

@charafau
Copy link
Collaborator

@jameshp thank you for issue. Yes resizeToAvoidBottomInset is set to false by default, but you can pass true as parameter and you'll get old behaviour.

@jameshp
Copy link
Contributor Author

jameshp commented Apr 11, 2019

thanks for clarifying, I somehow missed that.

@brnyza
Copy link

brnyza commented Aug 29, 2020

I trying like this, but the keyboard is in front of the input, is it necessary other configuration?
return WebviewScaffold(
resizeToAvoidBottomInset: true,
url: selectedUrl,

*flutter_webview_plugin: ^0.3.11

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

No branches or pull requests

3 participants