I know we can ignore pointer with the IgnorePointer widget, but how can I ignore just a specific event. for example, VerticalDrag or tap?
How can I ignore drag with IgnorePointer?
619 Views Asked by Hamed At
1
I know we can ignore pointer with the IgnorePointer widget, but how can I ignore just a specific event. for example, VerticalDrag or tap?
If you want to ignore a specific event, in your case
VerticalDragon a widgetContainer, you would have to wrap the widget in question in aGestureDetectorGestureDetectorswould always try and respond to events with non-null callbacks.So putting that all together, a simple code snippet to achieve what you wanted would probably look like this