Horizontal scroll with DefaultTabController

Hi, I have a screen with a full page chart inside a tabview. I would like to have the horizontal scroll gesture to change the tab page instead of getting captured by the graph. How can I do this?

Note: I'm using the zoom in the y direction of the graph so I would like to have the vertical pan in the grap


3 Replies

YG Yuvaraj Gajaraj Syncfusion Team December 28, 2021 11:43 AM UTC

Hi Stefano, 
 
Greetings from Syncfusion. We have analyzed your query and we have achieved the horizontal scrolling to switch between the tabs when the chart is rendered in the tab view with zooming/panning is enabled in y direction (vertical pan) only and attached the sample and screen recording below for your reference. 
 
Note: If you set the zoom mode to ‘x’ then the vertical zooming or panning works in the chart, and if you set the zoom mode to ‘y’ horizontal zooming or panning works in the chart. 
 
  
  
Regards, 
Yuvaraj. 



ST Stefano replied to Yuvaraj Gajaraj December 28, 2021 02:30 PM UTC

I'm sorry but I can't make this to work in my app. I'm currently running flutter v1 and the version of your package that I'm using and that its compatible with flutter v1 is

syncfusion_flutter_charts: ^18.3.35.


Is this horizontal fix in the following updates?



YG Yuvaraj Gajaraj Syncfusion Team December 29, 2021 05:59 PM UTC

Hi Stefano, 

Thanks for the information, with the provided information we found that you are using the older version of Flutter SDK and Syncfusion flutter charts that is why you didn’t able to achieve your requirement. So, suggest updating both Flutter SDK and Syncfusion flutter charts to the latest version that will help you to achieve your requirement, since with the latest version only the scrolling related improvement is available. 


Regards, 
Yuvaraj. 


Loader.
Up arrow icon