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 GestureDetector(
behavior: HitTestBehavior.translucent,
child: new PageView(
controller: _pageController,
children: _buildForegroundPages(),
),
),
Try using the IgnorePointer
class:
https://docs.flutter.io/flutter/widgets/IgnorePointer-class.html
A widget that is invisible during hit testing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With