There is a GestureDetector
above the WebView
.
when I touch the GestureDetector
, the WebView
is also response touch event.
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: <Widget>[
WebView(
initialUrl: url,
javascriptMode: JavascriptMode.unrestricted
),
GestureDetector(
child:Image.asset('.....'),
onTap:(){
//do something
}
)
],
),
);
}
How Can I stop WebView's touch response when I tap the GestureDetector?