Hii,
I am working on area chart where large no of data points will be plotted on the view port. In this case I am using visibleMinimum and visibleMaximum properties for displaying limited data points according the requirements. When I enable the zoom and panning, It works. But at that time when I make hotReload(FLUTTER) or setState for updating the state. It throws two errors such as
1. NoSuchMethodError: The getter 'zoomFactor' was called on null.
2. UnSupported operation: Infinity or NaN toInt
It runs without any error if I don't use visibleMinimum and visibleMaximum properties and Zooming and Panning as well. If I make zoom in/out, then I am getting errors.
Please find the attachment.
Waiting for your response that will help me out from this error.
Thank you.
Attachment:
codesamplewitherrors_2fb3da55.zip