Search code examples
flutterwebviewviewportwebview-flutter

how to make webview_flutter use wideviewport?


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