Skip to content

[webview_flutter] Bug with scrollView and WebView on iOS #107639

@robotoss

Description

@robotoss

Steps to Reproduce

  1. Execute flutter create new project on the code sample
  2. Add ListView to body with WebView and some Containers
  3. Scroll

**Actual results:
The webview widget stops at the safeArea, and after a certain period of time it starts scrolling forward

Screen.Recording.2022-07-14.at.14.43.29.mov
Code sample
ListView(
        children: [
          Container(
            height: 290,
            width: double.infinity,
            color: Colors.red,
          ),
          Container(
            color: Colors.green,
            height: 290,
            child: const WebView(
              initialUrl: 'https://google.com/',
            ),
          ),
          Container(
            height: 290,
            width: double.infinity,
            color: Colors.red,
          ),
          Container(
            color: Colors.green,
            height: 290,
            child: const WebView(
              initialUrl: 'https://google.com/',
            ),
          ),
          Container(
            height: 290,
            width: double.infinity,
            color: Colors.red,
          ),
          Container(
            color: Colors.green,
            height: 290,
            child: const WebView(
              initialUrl: 'https://google.com/',
            ),
          ),
          Container(
            height: 700,
            width: double.infinity,
            color: Colors.green,
          ),
        ],
      )
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale en-KZ)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Community Edition (version 2022.1.3)
[✓] VS Code (version 1.69.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

webview_flutter: 3.0.4

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowp: webviewThe WebView pluginplatform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions