How to disable scroll gestures upper half of the singlechildscrollview

137 Views Asked by At

I am finding for good ideas to disable scroll gestures upper half of the singlechildscrollview. My app has singlechildscrollview in full screen for scrollable full screen but I need to put another widget that has other gestures on its upper half. If keeping enable its upper half of scroll gestures conflicts gesture of the another wiget. Please help me if you have a nice ideas to solve this problem. enter image description here

I tried the following idea but it could not work well. On the its upper half, when onVerticalDragStart detected of GestureDetector on another widget, switching to disable scroll gestures by using NeverScrollableScrollPhysics propaty of singlechildscrollview. And when onVerticalDragEnd detected, switching back to enable scroll gestures. On the its lower half, scroll gestures keep always enable.

1

There are 1 best solutions below

2
Autocrab On

Wrap AnotherWidget with IgnorePointer widget