-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animated Chart Type Error when using duration over 30 milliseconds #96
Comments
@floodoo Can you provide a code snippet where you get this issue? |
No sry, I can't provide any code due to company confidentiality. |
Hi @floodoo. Sorry for late reply but can you maybe make a snippet that won't actually use any confidential data? I just need minimal reproducable code where this happens. |
Description:
I encountered an issue with the Animated Chart in your charts_painter library. Specifically, when I set the animation duration over 30 milliseconds, I receive the following error:
Exception: type 'ChartItem<void>' is not a subtype of type 'ChartItem<MyCustomModel?>' of 'startValue'
or
Exception: type 'ChartItem<void>' is not a subtype of type 'ChartItem<MyCustomModel?>' of 'endValue'
Stacktrace
However, the error doesn't occur when using the non-animated Chart or when the animation duration is set to or under 30 milliseconds.
Steps to Reproduce:
Expected Behavior:
The chart should animate without errors.
Actual Behavior:
An error is thrown when the animation duration is 300 milliseconds.
Workaround:
Use the Chart without animation.
Set the animation duration to 30 milliseconds.
Environment:
Flutter version: 3.13.2
charts_painter version: 3.1.1
OS: macOS with an iOS Simulator iPhone 14 Pro Max
The text was updated successfully, but these errors were encountered: