how to make webview_flutter use wideviewport?

0

Issue

when I load my Wix website using webview_flutter it doesn’t take fullscreen, but it works using flutter_webview_plugin, and I figured that the problem is that webview_flutter doesn’t set wide viewport natively webView.getSettings().setUseWideViewPort(true);
so how can i make it use this wide viewport?

Solution

so after 24 hours of debugging i was able to acheive the desired effect by forking the package and modifying the native code myself.

the modification was on the file WebViewBuilder.java and simply adding the line webStettings.setUseWideViewPort(true); to activate the wideviewport

Answered By – chiko360

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More