syncfusion / flutter-widgets

Syncfusion Flutter widgets libraries include high quality UI widgets and file-format packages to help you create rich, high-quality applications for iOS, Android, and web from a single code base.
1.46k stars 680 forks source link

A constant constructor can't call a non-constant super constructor - syncfusion_flutter_gauges #1785

Closed SanketKumarr closed 1 month ago

SanketKumarr commented 1 month ago

I am using syncfusion_flutter_gauges package (version: 25.1.38) and getting the below error:

/C:/Users/sanketkumar/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_gauges-25.1.38/lib/src/radial_gauge/axis/radial_axis_parent_widget.dart:36:9: Error: A constant constructor can't call a non-constant super constructor. : super(key: key, children: children); ^ /C:/Users/sanketkumar/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_gauges-25.1.38/lib/src/linear_gauge/gauge/linear_gauge_render_widget.dart:38:9: Error: A constant constructor can't call a non-constant super constructor. : super(key: key, children: children); ^

I am using Flutter version 3.7.12

hwpl-bit commented 1 month ago

I am using syncfusion_flutter_gauges package version: 24.2.9 and getting the below error:

C:/Users/hwpl-2/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_gauges-24.2.9/lib/src/linear_gauge/gauge/linear_gauge_render_widget.dart:38:9: Error: A constant constructor can't call a non-constant super constructor. : super(key: key, children: children); ^ /C:/Users/hwpl-2/AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_gauges-24.2.9/lib/src/radial_gauge/axis/radial_axis_parent_widget.dart:36:9: Error: A constant constructor can't call a non-constant super constructor. : super(key: key, children: children); ^ Target kernel_snapshot failed: Exception

I am using Flutter version 3.7.5

LokeshPalani commented 1 month ago

Hi @SanketKumarr,

The mentioned syncfusion_flutter_gauges version 25.1.x will be compatible with Flutter SDK version 3.19.0. If you are using Flutter SDK version 3.7.12, then use the syncfusion_flutter_gauges version 21.2.8 without the caret (^) sign to prevent upgrading to the latest version. Additionally, we have shared a user guide documentation link for your reference.

Syncfusion Compatible Package Version Link for Flutter SDK version 3.7.12:

https://pub.dev/packages/syncfusion_flutter_gauges/versions/21.2.8

UG Link, https://help.syncfusion.com/flutter/system-requirements#sdk-version-compatibility

Regards, Lokesh P.