Reputation: 3548
I'm working with the syncfusion_flutter_charts package. I have almost a perfect result, my only problem being that because the chart has the possibility to scroll horizontally in the package (I have no use for it on my app), whenever I want to scroll vertically on my screen and I tap on the chart to start my scroll down/up gesture, the screen doesn't move because the chart think I want to scroll horizontally even when there is no data on the chart.
I made a video to sum up my problem. In the video, you can see that when I tap anywhere on the screen, I can scroll down/up my view, but when I tap on one of the charts, it's not possible.
How can we totally disable the horizontal scroll ?
I searched on the documentation but I still don't have any solution as for now.
Upvotes: 0
Views: 1133
Reputation: 11
The swipe gesture is prohibited purposefully while user interactions are enabled in the following scenarios:
To overcome the reported issue scenarios, kindly upgrade the package version to the latest version below. https://pub.dev/packages/syncfusion_flutter_charts/versions/19.1.54+1
Upvotes: 1
Reputation: 315
Try this:
IgnorePointer(
ignoring: true,
child: // your child here
)
Upvotes: 2