Error compiling with new versions
Hi*i've updated flutter and syncfusion flutter charts versions et now i have the following errors during the compilation.
syncfusion_flutter_charts: ^18.1.36[✓] Flutter (Channel beta, v1.15.17, on Linux, locale en_US.UTF-8)
• Flutter version 1.15.17 at /home/krycil/dev/flutter
• Framework revision 2294d75bfa (5 months ago), 2020-03-07 00:28:38 +0900
• Engine revision 5aff311948
• Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)
• Flutter version 1.15.17 at /home/krycil/dev/flutter
• Framework revision 2294d75bfa (5 months ago), 2020-03-07 00:28:38 +0900
• Engine revision 5aff311948
• Dart version 2.8.0 (build 2.8.0-dev.12.0 9983424a3c)
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/barcodes_theme.dart:47:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfBarcodeThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/calendar_theme.dart:48:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfCalendarThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/charts_theme.dart:47:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfChartThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/datagrid_theme.dart:48:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfDataGridThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/daterangepicker_theme.dart:50:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfDateRangePickerThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/gauges_theme.dart:48:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfGaugeThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/maps_theme.dart:74:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfMapsThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/slider_theme.dart:80:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfSliderThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/theme_widget.dart:76:7: Error: Can't use 'Diagnosticable' as a mixin because it has constructors.
class SfThemeData with Diagnosticable {
^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3053:9: Context: This constructor prevents using 'Diagnosticable' as a mixin.
const Diagnosticable();
^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/barcodes_theme.dart:47:7: Error: The non-abstract class 'SfBarcodeThemeData' is missing implementations for these members:
- DiagnosticableMixin.toDiagnosticsNode
- DiagnosticableMixin.toStringShort
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class SfBarcodeThemeData with Diagnosticable {
^^^^^^^^^^^^^^^^^^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3108:19: Context: 'DiagnosticableMixin.toDiagnosticsNode' is defined here.
DiagnosticsNode toDiagnosticsNode({ String name, DiagnosticsTreeStyle style }) {
^^^^^^^^^^^^^^^^^
../../dev/flutter/packages/flutter/lib/src/foundation/diagnostics.dart:3087:10: Context: 'DiagnosticableMixin.toStringShort' is defined here.
String toStringShort() => describeIdentity(this);
^^^^^^^^^^^^^
../../dev/flutter/.pub-cache/hosted/pub.dartlang.org/syncfusion_flutter_core-18.2.48/lib/src/theme/calendar_theme.dart:48:7: Error: The non-abstract class 'SfCalendarThemeData' is missing implementations for these members:
- DiagnosticableMixin.toDiagnosticsNode
- DiagnosticableMixin.toStringShort
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SK
Sriram Kiran Senthilkumar
Syncfusion Team
August 13, 2020 06:59 AM UTC
Hi Cyril,
Greetings from Syncfusion. We have analyzed your scenario and we found that you are using the outdated versions of Flutter SDK(v1.15.17 beta channel) for building your app and due to this only you are getting the reported compilation errors. To overcome these reported compilation errors, we kindly request you to upgrade your Flutter SDK to the latest stable or beta channel versions below.
Flutter SDK (latest beta channel version): https://storage.googleapis.com/flutter_infra/releases/beta/windows/flutter_windows_1.20.0-7.4.pre-beta.zip
Flutter SDK (latest stable channel version): https://storage.googleapis.com/flutter_infra/releases/stable/windows/flutter_windows_1.20.1-stable.zip
Please get in touch with us If you still have further concerns.
Regards,
Sriram Kiran
Marked as answer
CY
Cyril
August 13, 2020 10:01 AM UTC
Hi Sriram
it's updated..I shoud have ckecked before ^. Thank you !
best regards
SK
Sriram Kiran Senthilkumar
Syncfusion Team
August 13, 2020 11:50 AM UTC
Hi Cyril,
Most welcome. We are always happy in assisting you. Kindly revert us if you have further queries.
Regards,
Sriram Kiran
SIGN IN To post a reply.