-
Notifications
You must be signed in to change notification settings - Fork 803
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
The method 'withValues' isn't defined for the class 'Color'. #2231
Comments
I got the same error, and I think that is something wrong with the Until we have this fix, I will post here what I did to build my app normally. Just set the past version on your pubspec.yaml to:
And, on your pubspec.lock, set the same version to syncfusion_flutter_core, it will force you flutter pub get to use this version instead of 28.1.36
|
This one just lets you build the app. Here, the chart is not visible yet. |
+1 |
1 similar comment
+1 |
In my case, upgrading Flutter resolved the issue. |
Can't upgrade the flutter version due to version constraints on my app but using one or 2 version older solved it |
I got this error in only github actions. Error : The method 'withValues' isn't defined for the class 'Color'.
|
Yes upgrading flutter will solve this error or else you can downgrade your syncfusion package and use that |
Bug description
I am using syncfusion_flutter_charts 28.1.36 for my App and I get this error whenever I try to build.
Here I am using Riverpod for state management in my app.
Error : The method 'withValues' isn't defined for the class 'Color'.
SDK Version :-
Flutter 3.24.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 603104015d (9 weeks ago) • 2024-10-24 08:01:25 -0700
Engine • revision db49896cf2
Tools • Dart 3.5.4 • DevTools 2.37.3
Steps to reproduce
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
The text was updated successfully, but these errors were encountered: