You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: ../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2242:39: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
color: Colors.black.withValues(alpha: 0.3),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2289:58: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2290:58: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2325:38: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.6),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2347:52: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.6)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2348:52: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.6),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2431:50: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.38)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2434:50: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.38))
^^^^^^^^^^
Steps to reproduce
Error: The method 'withValues' isn't defined for the class 'Color'.
error: ../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2242:39: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
color: Colors.black.withValues(alpha: 0.3),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2289:58: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2290:58: Error: The method 'withValues' isn't defined for the class 'Color'.
'Color' is from 'dart:ui'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.87)
^^^^^^^^^^
Stack Traces
Stack Traces
none
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
none
The text was updated successfully, but these errors were encountered:
I had the same problem, but in mobile development (Android) and using the SfcartesianChart. I solved this by updating my Flutter SDK. I think you are using an incompatible version between the package and Flutter
So, kindly upgrade the Flutter SDK to 3.27 and rebuild your application to resolve this issue.
If you are not willing to upgrade the Flutter SDK, please use syncfusion_flutter_pdfviewer package version 28.1.35 or below.
Bug description
error: ../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2242:39: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
color: Colors.black.withValues(alpha: 0.3),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2289:58: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2290:58: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2325:38: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.6),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2347:52: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.6)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2348:52: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.6),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2431:50: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.38)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2434:50: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
.withValues(alpha: 0.38))
^^^^^^^^^^
Steps to reproduce
Error: The method 'withValues' isn't defined for the class 'Color'.
Code sample
Code sample
Screenshots or Video
Screenshots / Video demonstration
error: ../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2242:39: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
color: Colors.black.withValues(alpha: 0.3),
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2289:58: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
? Colors.black.withValues(alpha: 0.87)
^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_pdfviewer-28.1.39/lib/src/pdfviewer.dart:2290:58: Error: The method 'withValues' isn't defined for the class 'Color'.
Try correcting the name to the name of an existing method, or defining a method named 'withValues'.
: Colors.white.withValues(alpha: 0.87)
^^^^^^^^^^
Stack Traces
Stack Traces
On which target platforms have you observed this bug?
iOS
Flutter Doctor output
Doctor output
none
The text was updated successfully, but these errors were encountered: