Ask Your Question
1

The stack is being disregarded by Flutter web Webview, and any elements placed above the webview are not responsive.

asked 2021-04-18 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-12-13 14:00:00 +0000

devzero gravatar image

This is a known issue with Flutter web Webview. The stack is being rendered behind the Webview, which causes any elements placed above the Webview to be unresponsive.

One workaround to this issue is to use the Flutter web_iframe package instead of the Webview. This allows you to embed a webpage within your Flutter app and have it behave like a regular widget, allowing any elements placed above it to be responsive.

Another workaround is to wrap the Webview in a GestureDetector widget and manually handle any touch events on the Webview.

You can also try adjusting the z-index property of the elements above the Webview to bring them to the front, but this may not work in all cases.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-04-18 11:00:00 +0000

Seen: 10 times

Last updated: Dec 13 '22