flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Keyboard issue in some case.

Open ycv005 opened this issue 2 years ago • 18 comments

Environment

Technology Version
Flutter version 2.10.5
Plugin version flutter_inappwebview: ^5.4.3
Android version 12
iOS version NA
Xcode version NA

Device information:

Description

Input field not goes up when Keyboard is used even in hybrid mode. But input field is goes up on keyboard hit when switching to different app then comming back to current app.

https://user-images.githubusercontent.com/26734819/165621233-69e41ac7-d52b-4a63-bec0-a0a588b443d6.mp4

Steps to reproduce

  1. It can be try via this url - Url- https://flipkart.com/

Images

Stacktrace/Logcat

ycv005 avatar Apr 27 '22 20:04 ycv005

👋 @ycv005

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Apr 27 '22 20:04 github-actions[bot]

Did you try to enable hybrid composition ?

EArminjon avatar May 08 '22 21:05 EArminjon

@EArminjon The Hybrid mode is enable.

ycv005 avatar May 09 '22 16:05 ycv005

@ycv005 Did you set resizetoavoidbottominset in your scaffold ? Or something like MediaQuery.removePadding ?

EArminjon avatar May 09 '22 17:05 EArminjon

Has anyone solved this problem?

iCytus avatar Aug 12 '22 04:08 iCytus

@pichillilorenzo this problem looks serious. Users can't reach part of content on some sites.

alectogeek avatar Aug 22 '22 16:08 alectogeek

@pichillilorenzo this problem looks serious. Users can't reach part of content on some sites.

Share your code please.

EArminjon avatar Aug 22 '22 17:08 EArminjon

@pichillilorenzo this problem looks serious. Users can't reach part of content on some sites.

Share your code please.

Just use the code from the repository example folder and replace the default link "https://github.com/flutter" to "https://flipkart.com/". Then click "Login" and then click the back button (as shown in the original video above).

I just checked, and it is reproducible.

Screenshot_1661189786

alectogeek avatar Aug 22 '22 17:08 alectogeek

@pichillilorenzo sorry for pinging you, but can you take a quick look at this? For my production app, it is a severe problem. Should I wait for a hotfix or try to find a workaround myself (not an easy task, huh)?

Thanks!

alectogeek avatar Aug 22 '22 17:08 alectogeek

I investigated, it's a css issue. Your modal is not well sticky at the bottom and when keyboard open she stay at a hard coded position given by a weird "transform: translate3d(0px, 482px, 0px);".

Just use absolute position and bottom: 0px.

It's not the library fault.

EArminjon avatar Aug 22 '22 18:08 EArminjon

I investigated, it's a css issue. Your modal is not well sticky at the bottom and when keyboard open she stay at a hard coded position given by a weird "transform: translate3d(0px, 482px, 0px);".

Just use absolute position and bottom: 0px.

It's not the library fault.

Default browser on my android phone:

photo_2022-08-22 23 01 30

alectogeek avatar Aug 22 '22 19:08 alectogeek

The same on ios. So the webview should have tools to handle this somehow.

Chrome & Safari on iOS:

ADB00910-7320-4FAE-BD2B-DA696BDC0048_1_102_o F05ABF4E-39E6-4F87-AF1E-D601EAF54352_1_201_a

alectogeek avatar Aug 22 '22 19:08 alectogeek

meet same problem 。。。

guotao avatar Oct 25 '22 08:10 guotao

Any follow-up regarding this issue?

cw-jiwonhae avatar Dec 27 '22 02:12 cw-jiwonhae

I also have the same problem, hope there is a solution

LEHOANGLONG0807 avatar Mar 21 '23 08:03 LEHOANGLONG0807

I also have the same problem, hope there is a solution

MeiChao avatar Jun 16 '23 10:06 MeiChao

I also have the same problem, hope there is a solution

KyoShio avatar Sep 24 '23 19:09 KyoShio

You should redirect page with keypad closed

qkreltms avatar May 10 '24 06:05 qkreltms