Relative Content

Tag Archive for fluttergesturedetector

GestureDetector not working within a SizedBox

I have the below widget that creates a CircularIconButton. I want to have a GestureDetector such that the whole space that this widget takes can be tapped and some action done. Here’s an image of what it looks like below:

Using gesture detectors in overlapping widgets inside stack

I’m trying to place two overlapping widgets in a Stack and wrap those widgets with different GestureDetector widgets. My goal is to receive tap events in both GestureDetectors when tapping in the overlapping area. I’ve tried tweaking the behavior property with different options, but none seem to work. With my current code in the overlapping area I only get tap events from the second element.