Skip to content

Flutter stable build fails with: method 'markNeedsBuild' isn't defined for the class 'RenderConstrainedLayoutBuilder' #2008

@rich-j

Description

@rich-j

Bug description

Use the latest stable Flutter release and the build fails with

Failed to build iOS app
Error (Xcode): ../../.pub-cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.8/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.

This appears to be the same as issue #1907 which was marked as completed because the user wasn't using the stable branch. We are using the stable branch.

Steps to reproduce

Use Flutter stable branch 3.24.0 with syncfusion_flutter_charts: ^26.2.8.

Code sample

Code sample
environment:
  sdk: ">=3.5.0 <4.0.0"
  flutter: ">=3.24.0"

dependencies:
  syncfusion_flutter_calendar: ^26.2.8
  syncfusion_flutter_charts: ^26.2.8
  syncfusion_flutter_datagrid: ^26.2.8

Screenshots or Video

Stack Traces

Stack Traces
Failed to build iOS app
Error (Xcode): ../../.pub-cache/hosted/pub.dev/syncfusion_flutter_charts-26.2.8/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.

On which target platforms have you observed this bug?

iOS

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 14.6 23G80 darwin-arm64, locale en-US)
[✓] 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)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.1.5)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    chartsCharts componentwaiting for customer responseCannot make further progress until the customer responds.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions