Skip to content

Build error on Flutter 3.29.0 — RenderObjectWithLayoutCallbackMixin not found #110

@yagoquesadafloriach

Description

@yagoquesadafloriach

Using this package with Flutter 3.29.0 causes a build failure due to a removed internal class: RenderObjectWithLayoutCallbackMixin.

Error:

Error (Xcode):
../../../.pub-cache/git/flutter_math-127cf24e01bff00a4e25a4820295a871020f7a94/lib/src/render/layout/layout_builder_baseline.dart:26:9:
Error: Type 'RenderObjectWithLayoutCallbackMixin' not found.

Versions tested:

  • flutter_math_fork at main (via Git)
  • Version 0.7.4
  • Version 0.7.2

Same result across all versions.

Flutter doctor:

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.2 24C101 darwin-arm64, locale ca-ES)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.100.1)
[✓] Connected device (5 available)
    ! Error: Browsing on the local area network for iPhone. Ensure the device is unlocked and attached with a cable or associated with the
      same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!

Note:

RenderObjectWithLayoutCallbackMixin was removed in newer Flutter versions. This affects layout_builder_baseline.dart, which likely needs to be refactored to avoid relying on this internal class.

Please advise if there's a version compatible with Flutter 3.29.0 or if a fix is planned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions