Compile Error with SfDatepicker

Hi when compiling my project I am getting the following errors:


../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/barcodes_theme.dart:45:31: Error: Type 'DiagnosticableMixin' not found.
class SfBarcodeThemeData with DiagnosticableMixin {
                              ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/calendar_theme.dart:45:32: Error: Type 'DiagnosticableMixin' not found.
class SfCalendarThemeData with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/charts_theme.dart:45:29: Error: Type 'DiagnosticableMixin' not found.
class SfChartThemeData with DiagnosticableMixin {

../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/datagrid_theme.dart:45:32: Error: Type 'DiagnosticableMixin' not found.
class SfDataGridThemeData with DiagnosticableMixin {
                               ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/daterangepicker_theme.dart:47:39: Error: Type 'DiagnosticableMixin' not found.
class SfDateRangePickerThemeData with DiagnosticableMixin {
                                      ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/gauges_theme.dart:45:29: Error: Type 'DiagnosticableMixin' not found.
class SfGaugeThemeData with DiagnosticableMixin {

../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/maps_theme.dart:44:28: Error: Type 'DiagnosticableMixin' not found.
class SfMapsThemeData with DiagnosticableMixin {
                           ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/slider_theme.dart:40:30: Error: Type 'DiagnosticableMixin' not found.
class SfSliderThemeData with DiagnosticableMixin {
                             ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/theme_widget.dart:75:24: Error: Type 'DiagnosticableMixin' not found.
class SfThemeData with DiagnosticableMixin {
                       ^^^^^^^^^^^^^^^^^^^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/barcodes_theme.dart:45:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class SfBarcodeThemeData with DiagnosticableMixin {
      ^
../flutter/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.44/lib/src/theme/calendar_theme.dart:45:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class SfCalendarThemeData with DiagnosticableMixin {


And the same again a few more times.

Flutter Doctor output :

[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-US)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.44.0)
[✓] Connected device (1 available)


I am using syncfusion_flutter_datepicker: ^18.1.57-beta

Could you please let me know how I can resolve this?


5 Replies 1 reply marked as answer

IR Indumathi Ravichandran Syncfusion Team September 11, 2020 05:50 AM UTC

Hi Nicholas, 
 
Thank you for contacting Syncfusion support. 
 
We have already fixed the mentioned issue “Compilation error with the SfDatePicker” in our Weekly Nuget version 18.2.47+1 version. We have checked the mentioned issue in the simple sample, and it is working fine. We have prepared the simple sample for the same. Please find the sample from the following link. 
 
 
Can you please update the package to latest version and if still you are facing the same issue, please try the following steps and run the sample? 
 
·       Remove the already installed core packages from the .pub-cache folder of the Flutter Sdk location. 
·      Then run the `flutter clean` command and run the sample. 
 
Regards, 
Indumathi R 


Marked as answer

NL Nicholas Latham September 11, 2020 11:24 AM UTC

Thanks, eventually when I cleared the cache it works. thanks


IR Indumathi Ravichandran Syncfusion Team September 11, 2020 12:24 PM UTC

Hi Nicholas, 
 
Thank you for the update. We are glad that the issue resolved, please get back to us if you require further assistance. 
 
Regards, 
Indumathi R 



DO David OGUNDEPO January 17, 2023 10:20 AM UTC

Hello Indumathi, can I use your assistance with the Datagrid widget?



SP Sangavi Periyannan Syncfusion Team January 18, 2023 09:46 AM UTC

David,

Please provide more details about your query.  This would be helpful for us to serve you.



Loader.
Up arrow icon