Skip to content

[webview_flutter] Add more access to Webview settings #70731

@tfinlay

Description

@tfinlay

Use case

I'm migrating an existing application from flutter_webview_plugin to webview_flutter, and am sorely missing some of the extra WebView settings that flutter_webview_plugin exposes.

Primarily (for my use-case at least) I'm missing:

  • useWideViewPort
  • withZoom

As these allow me to force the webview to display webpages that are designed for desktop. Without these options enabled the webpage is squashed to fit the frame, instead of being rendered zoomed out, which I would prefer in this case (Chrome shows the page zoomed out on the same phone).

Proposal

The addition of these two parameters to the WebView constructor, or exposing them as settings on WebViewController.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions