Skip to content

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

@itismejy

Description

@itismejy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gaugesGauges componentwaiting for customer responseCannot make further progress until the customer responds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions