Trying to make widgets behind a PageView clickable by wrapping it around a GestureDetector but it doesn\'t work. Is there another way I can do this?
new Gest
Try using the IgnorePointer
class:
https://docs.flutter.io/flutter/widgets/IgnorePointer-class.html
A widget that is invisible during hit testing.
I just got it to work like this!
First, wrap the individual children in GestureDetector that you want to interact with.
Second, set the hit test behavior to translucent.
PageView(
...
children: [
FirstChild(),
SecondChild(),
//Child that you want gestures passed down to
GestureDetector(
behavior: HitTestBehavior.translucent,
child: GesturedThirdChild(),
),
]