Skip to content
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

syncfusion_flutter_gauges-28.1.37 Error: The method 'withValues' isn't defined for the class 'Color'. #2238

Open
itismejy opened this issue Jan 2, 2025 · 8 comments
Labels
gauges Gauges component open Open

Comments

@itismejy
Copy link

itismejy commented Jan 2, 2025

Bug description

Could not build the precompiled application for the device.
Error (Xcode): ../../.pub-cache/hosted/pub.dev/syncfusion_flutter_calendar-28.1.37/lib/src/calendar/sfcalendar.dart:3882:44: Error: The
method 'withValues' isn't defined for the class 'Color'.

Steps to reproduce

syncfusion_flutter_gauges: ^28.1.37
syncfusion_flutter_calendar: ^28.1.37
syncfusion_flutter_datepicker: ^28.1.37

Code sample

Code sample
[Add your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Screenshot 2025-01-01 at 23 27 27

Stack Traces

Stack Traces
Could not build the precompiled application for the device.
Error (Xcode):
../../.pub-cache/hosted/pub.dev/syncfusion_flutter_gauges-28.1.37/lib/src/linear_gauge/pointers/linear_shape_pointer.dart:449:43:
Error: The method 'withValues' isn't defined for the class 'Color'.

On which target platforms have you observed this bug?

iOS

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.24.5, on macOS 15.1 24B2082 darwin-arm64, locale en-US)
    • Flutter version 3.24.5 on channel stable at /Users/jasonyang/Documents/Development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (7 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/jasonyang/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
    • Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] VS Code (version 1.96.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.102.0

[✓] Connected device (4 available)
    • iPhone (2) aka 龙哥 (mobile)      • 00008030-00114C311120802E • ios          • iOS 16.3.1 20D67
    • GrantNew16 (mobile)             • 00008140-0010549821D8801C • ios          • iOS 18.1.1 22B91
    • macOS (desktop)                 • macos                     • darwin-arm64 • macOS 15.1 24B2082 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin       • macOS 15.1 24B2082 darwin-arm64

[✓] Network resources
    • All expected network resources are available.
@skbansal5642
Copy link

Facing the same error for pdfViewer package in web.

@LeoleoSt
Copy link

LeoleoSt commented Jan 2, 2025

try "flutter upgrade"

@flocbit
Copy link

flocbit commented Jan 2, 2025

Experiencing the same issue and can't yet upgrade to flutter 3.27.

@skbansal5642
Copy link

try "flutter upgrade"

What's the to upgrade? Upgrade might need to upgrade other dependencies also and also might require to make changes in code.

I don't think it's a good solution.

The error to seems related to some missing configurations for web platform.

@mohammedsajil
Copy link

I encountered the same issue, but after upgrading to the latest version of Flutter [3.27.1], the problem was resolved.

@FadyFayezYounan
Copy link

This issue appears to be caused by the latest version of Flutter. If you prefer not to update Flutter, consider using an older version of the package, as it might resolve the problem.

@skbansal5642
Copy link

This issue appears to be caused by the latest version of Flutter. If you prefer not to update Flutter, consider using an older version of the package, as it might resolve the problem.

Have you tried it? Can you please mention which version of flutter and syncfusion is working together?

Please check with the most recent version as much as possible. Right now I am using version 3.24 of Flutter.

@naychrist
Copy link

upgrading flutter to 3.27.1 did not fix the issue for me. downgrading to PDF viewer 26.2.14 did.

@LavanyaGowtham2021 LavanyaGowtham2021 added gauges Gauges component open Open labels Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gauges Gauges component open Open
Projects
None yet
Development

No branches or pull requests

8 participants