Skip to content

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

Closed

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.

Activity

  1. danagbemava-nc commented on Mar 28, 2022

    @danagbemava-nc
    Member

    Hi @b099l3, it looks like there's already an existing issue requesting this feature, see #69748.

    Kindly update your PR to reference that issue instead.

    Closing from here as duplicate.

    Thank you

  2. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on Mar 28, 2022
  3. b099l3 commented on Mar 28, 2022

    @b099l3
    Author

    Hi @danagbemava-nc
    Sorry I had a look but was searching on the "[webview_flutter]" term, not to worry.

    Updated my PR

  4. github-actions commented on Apr 11, 2022

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Apr 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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