markNeedsBuild Method Not Defined in syncfusion_flutter_charts Package Version 26.2.9

I am encountering an issue with the syncfusion_flutter_charts package version 26.2.9 in my Flutter project. The following error messages are displayed during the build process:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


../../AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/common/core_tooltip.dart(168,22): error GE5CFE876: The method 'markNeedsBuild' isn't defined for the class 'RenderConstrainedLayoutBuilder<Constraints, RenderObject>'.

../../AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/common/core_legend.dart(452,22): error GE5CFE876: The method 'markNeedsBuild' isn't defined for the class 'RenderConstrainedLayoutBuilder<Constraints, RenderObject>'.

../../AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/common/element_widget.dart(117,5): error GE5CFE876: The method 'markNeedsBuild' isn't defined for the class 'RenderChartElementLayoutBuilder<T, D>'.

../../AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/base.dart(3317,7): error GE5CFE876: The method 'markNeedsBuild' isn't defined for the class 'RenderLoadingIndicator'.

../../AppData/Local/Pub/Cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.9/lib/src/charts/cartesian_chart.dart(1367,22): error GE5CFE876: The method 'markNeedsBuild' isn't defined for the class 'RenderConstrainedLayoutBuilder<Constraints, RenderObject>'.>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Flutter SDK Version: 3.5.0 (stable)


Dart SDK Version: 3.5.0 (stable)


Minimal Reproducible Example:


environment:

  sdk: ">=2.17.0 <3.0.0"


dependencies:

  flutter:

    sdk: flutter

  syncfusion_flutter_charts: ^26.2.9



2 Replies

PS Preethika Selvam Syncfusion Team August 19, 2024 08:43 AM UTC

Hi Med,


The reported issue arises because the Flutter SDK was upgraded to version 3.24.0 on August 6, 2024, while our packages are currently compatible with Flutter SDK version 3.22.3. We have begun evaluating the compatibility and feasibility of updating our packages to work with the latest Flutter version, 3.24.0. We plan to make our packages compatible and include them in our Volume 3 main release, which is expected to be rolled out in the second week of September. In the meantime, we kindly request that you use Flutter SDK version 3.22.3 when working with our syncfusion_flutter_charts package.


Regards,

Preethika Selvam.



TC Thilip Chandru Soundraraj Syncfusion Team September 11, 2024 06:08 AM UTC

Hi Med Amine Menadi,


Thank you for your patience. We have upgraded our Flutter Charts package to be compatible with Flutter SDK 3.24.0. We kindly request you to upgrade Flutter Charts to the latest version.


Regards,

Thilip Chandru.


Loader.
Up arrow icon