Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebView is Not Scrollable #316

Closed
tpfwrz opened this issue Apr 7, 2020 · 2 comments
Closed

WebView is Not Scrollable #316

tpfwrz opened this issue Apr 7, 2020 · 2 comments

Comments

@tpfwrz
Copy link

tpfwrz commented Apr 7, 2020

Environment

Flutter version: 1.12.13 stable
Plugin version: ^2.1.0+1
Android version:
iOS version: 13.3
Xcode version: 11.3.1
Device information: Iphone 11 Max simulator

Description

When I create a webview in my app, I expect the content to be scrollable,
but when I try to scroll within it, since the container of the webview is a descendent of SingleChildScrollView, the scroll happens on my page content, not the webview (yes, im scrolling within the actual content and not page).
Expected behavior:

The webview should scroll down the contents of the website.

Current behavior:
The actual flutter page that has SingleChildScrollView gets scrolled instead.

Steps to reproduce

Create a component that looks like this

  Widget build(BuildContext context) {
    return SingleChildScrollView(
      child: Column(
        children: <Widget>[
                Container(child:InAppWebView),
Container(child:otherpartofpage)
])

Another Note

Im interested in running this plugin on Xcode 10.2, what properties do I have to modify in source code besides the isFraudelent option? Thanks

@tpfwrz
Copy link
Author

tpfwrz commented Apr 7, 2020

Another Potential bug Ive noticed, sharedCookiesEnabled set to false doesn't seem to make the session not save the cookies, which is expected behavior.
The cookies still get saved and applied on subsequent applications of the code.

@pichillilorenzo
Copy link
Owner

pichillilorenzo commented Jun 22, 2020

You can apply the EagerGestureRecognizer gesture recognizer to the InAppWebView widget:

var gestureRecognizers = <Factory<OneSequenceGestureRecognizer>>[
	Factory<OneSequenceGestureRecognizer>(
		() => EagerGestureRecognizer(),
	),
].toSet();

This was referenced Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants