Skip to content

[webview_flutter] Expose the allowsLinkPreview property in WKWebView for iOS  #100783

@b099l3

Description

@b099l3

Use case

I am using the WebView widget in my application and have noticed that users can long-press links to get a preview, aka, peek and pop view (iOS only feature):
Simulator Screen Recording - iPhone 13 - 2022-03-25 at 17 17 57

I would like to have control over what WebViews have this property enabled on iOS.

This can be set by using the allowsLinkPreview boolean property on WKWebview.

Some other packages do expose this property like flutter_inappwebview - allowsLinkPreview

However, I feel this is a foundational level functionality for webviews on iOS and noticed that flutter_webviews package doesn't expose this property but does expose other iOS only properties like gestureNavigationEnabled.

Proposal

In a similar manner to the gestureNavigationEnabled property I was going to propose adding allowsLinkPreview and passing that through to the native WKWebView set up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions