Skip to content

FlutterFlow SafeArea generates invalid 'left' parameter causing compilation failure #7472

Description

@buildyaar-git

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

My project is unable to compile/run because FlutterFlow generates an invalid parameter for FlutterFlowSafeArea.

The generated home_page_widget.dart contains:
left: false,

The build then fails with:
Error: No named parameter with the name 'left'.

The error points to the FlutterFlowSafeArea constructor in flutter_flow_util.dart, where the constructor arguments do not match the generated HomePage code.

I have already tried enabling/disabling Safe Area, refreshing/reloading FlutterFlow, and rebuilding multiple times. The generated code continues to include the unsupported left parameter.

This is currently blocking Run Mode and prevents us from testing further development.

Expected Behavior

FlutterFlow should generate valid code for the HomePage based on the Safe Area settings selected in the UI.

The generated FlutterFlowSafeArea call should only contain parameters supported by its constructor, allowing the project to compile and Run Mode to start normal

Steps to Reproduce

1.Open the existing FlutterFlow project.
2.Open HomePage.
3.Safe Area can be enabled or disabled; the issue occurs in both states.
4.Click Run.
5.Build fails during compilation.
.6Generated home_page_widget.dart contains left: false (or left: true when enabled) inside FlutterFlowSafeArea.
7.Compiler reports: No named parameter with the name 'left'.
8.FlutterFlowSafeArea constructor in flutter_flow_util.dart does not contain a matching left parameter.

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4Wls/l5Yx2vuFY7aXxbcdoiSQsHEwlaOYrlcNxcAIcCLXpP5wPX/ykP1FoXbSndglEIU38oHMK0NWLm9z2Vu5eFy6rbtllyKlibz3hTjmhRpCzEZCSdXxuGshYI0/H15izuRN+Wftoc2Q+7FOHf+utVjbBNL7OOVdAIvmbJqfXrgfuQ0SLb3kNh1JWeC/v

Visual documentation

Screenshot attached showing the HomePage compilation failure and the generated FlutterFlowSafeArea error: No named parameter with the name 'left'.

Image Image

Environment

- FlutterFlow version: Current FlutterFlow web editor build
- Platform: FlutterFlow Web Editor / Web Run
- Browser name and version: Google Chrome
- Operating system and version affected: Windows 10/11

Additional Information

This issue completely blocks Run Mode, so I cannot test ongoing development in the project. The same issue has persisted across multiple refreshes/reloads and with Safe Area both enabled and disabled.

This appears to be the same generator mismatch reported in #7414. That issue was closed because the original reporter did not provide the requested Bug Report Code. I have provided a current Bug Report Code above so the affected project can be investigated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions