title: How to make a GestureDetector capture taps inside a Stack?
body: <p>I'm trying to make a GestureDetector work inside a Stack with a Container on top of it but the onTap callback is never called. </p>
  
  <p>As you can see, it doesn't work even with <code>HitTestBehavior.translucent</code></p>
  
  <pre><code>  @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SafeArea(
          child: Stack(
            children: &lt;Widget&gt;[
              GestureDetector(
                behavior: HitTestBehavior.translucent,
                onTap: () {
                  print('tap');
                },
                child: Container(color: Colors.blue),
              ),
              Container(color: Colors.white),
            ],
          ),
        ),
      );
    }
  </code></pre>
  
  <p>I know that it can be strange that I would want to capture tap event below another Widget but in my real case, the widget on top is transparent and sometimes has a gradient.</p>