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.55k stars 756 forks source link

The method 'markNeedsBuild' isn't defined for the class #2050

Closed saprahits closed 4 days ago

saprahits commented 1 week ago

Bug description

Launching lib/main.dart on iPhone 15 Pro Max in debug mode... Running pod install... Running Xcode build... Xcode build done. 114.6s Failed to build iOS app Error (Xcode): ../../../.pub-cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.11/lib/src/charts/cartesian_chart.dart:1367:22: Error: The method 'markNeedsBuild' isn't defined for the class 'RenderConstrainedLayoutBuilder<Constraints, RenderObject>'.

Could not build the application for the simulator. Error launching application on iPhone 15 Pro Max.

Steps to reproduce

flutter clean
flutter pub get
flutter build ios
flutter run

Code sample

Code sample ```dart syncfusion_flutter_charts: ^26.2.11 ```

Screenshots or Video

Screenshots / Video demonstration Screenshot 2024-09-02 at 12 18 13 PM

Stack Traces

Stack Traces ``` flutter clean flutter pub get flutter build ios flutter run ```

On which target platforms have you observed this bug?

Android, iOS

Flutter Doctor output

Doctor output ```console hiteshsapra@Hiteshs-MacBook-Pro mobileapp % flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.24.1, on macOS 14.6.1 23G93 darwin-arm64, locale en-GB) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.1) [✓] VS Code (version 1.92.2) [✓] Connected device (7 available) [✓] Network resources • No issues found! ```
postboxat18 commented 1 week ago

image

Remember the following text:

Go to 'flutter/packages/flutter/lib/src/widgets/layout_builder.dart' and add: void markNeedsBuild() { markNeedsLayout(); }

in the 'mixin RenderConstrainedLayoutBuilder' class.

Temporarily resolve problems.

Prathap-Aosta commented 1 week ago

image

Remember the following text:

Go to 'flutter/packages/flutter/lib/src/widgets/layout_builder.dart' and add: void markNeedsBuild() { markNeedsLayout(); }

in the 'mixin RenderConstrainedLayoutBuilder' class.

Temporarily resolve problems.

Thank You , it works for me.

PreethikaSelvam commented 1 week ago

Hi All,

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 almost completed 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.

akmaladib01 commented 1 week ago

hi, im having same problem "The method 'markNeedsBuild' isn't defined for the class" but in android. does the step to solve is same with ios? and my flutter sdk is 3.25.0

withden commented 4 days ago

I think they updated (Now it's compatible with Flutter 3.24): https://pub.dev/packages/syncfusion_flutter_charts/changelog

saprahits commented 4 days ago

Yes Not it's woking

ThilipChandru commented 4 days ago

Hi All,

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.

Charts: https://pub.dev/packages/syncfusion_flutter_charts/versions/26.2.14

Regards, Thilip Chandru.