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
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(),
),
]