Skip to content

[Webview_flutter] on iOS webview triggers the click events which was for the contents (widgets) of the Drawer or Bottom sheet #69208

@vaimikpatel2908

Description

@vaimikpatel2908

It works fine on the android but having some problems with iOS.

Steps to Reproduce

  1. Create a WebView with any URL and drawer/bottom sheet/modal bottom sheet with some buttons/switch or some other content.
  2. Then try to interact with the content(like buttons or sometimes even background) of drawer/bottom sheet/modal bottom sheet(I had the map on the webpage with click event trigger so it was very easy to notice the unnecessary events.

Expected results: It should not be clicking on the page as we are dealing with the content of other parts of the app.

Actual results: But it triggers the click events on the webpage of WebView while interacting with drawer or bottom sheets.

flutter analyze
Analyzing ios...
No issues found! (ran in 1.3s)

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.2, on Mac OS X 10.15.7 19H2, locale en-CA)
    • Flutter version 1.22.2 at /Users/tejasghutukade/flutter
    • Framework revision 84f3d28555 (13 days ago), 2020-10-15 16:26:19 -0700
    • Engine revision b8752bbfff
    • Dart version 2.10.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.1)
    • Android SDK at /Users/tejasghutukade/Library/Android/sdk
    • Platform android-30, build-tools 29.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] Connected device (1 available)
    • Fca’s iPhone (mobile) • 841320513647e6b44ae72fbd33282f4362f88dd9 • ios • iOS 14.0.1
• No issues found!

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: platform-viewsEmbedding Android/iOS views in Flutter appscustomer: money (g3)found in release: 2.2Found to occur in 2.2found in release: 2.5Found to occur in 2.5has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: webviewThe WebView pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: 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