Facing issue with IgnorePointer while using with Webview

292 Views Asked by At

I have a webview implemented in my flutter application which is wrapped by an Ignorepointer Widget. I am setting ignoring as true upon a condition to prevent touch events of webview.

But it is not working as expected, I am able to touch webview even if ignoring is true. This is observed only in IOS not in android.

Kindly provide me a solution.

I have also implemented absorbpointer instead of ignorepointer still this issue is replicating.

Code

IgnorePointer( ignoring:true, child:InAppWebview( .... ) )

1

There are 1 best solutions below

1
On

Try this soulution:

AbsorbPointer(child: WebView(...))

Reference: https://stackoverflow.com/a/57900810/8923759