Skip to content

The page state variable and action output variable must not be the same. #532

@thruthesky

Description

@thruthesky

Expected behavior (required)

Let's put that I have a page state named "event" and an action output variable named as "event" also.
Then, these two same variable names conflicts on the page model like below.

image

The expected behavior would be one of;

  • There should be an error on UI builder before the app run.
  • Or the app run without error.

Current behavior (required)

  • There is an error and it does not run/build.

To Reproduce (required)

  1. Create new page
  2. Do some action and put the result into event.
  3. Declare a page state variable named event also.
  4. Click Run
  5. Observe that project doesn’t build

Bug Report Code (required, generate by right clicking inside Widget Tree and clicking "Get Bug Report Code")

ITESz/Hqx89gruFH7YfpY8B6hQIgQ0QnU7gnlO1ucx4gIb2rP5YAYszBYUNKTd+4YwhAD02grDgKpsLSv+PiGu1dZAueRYBzk/UwKlCvHAM=

Context (required)

  • For the development experience, the UI builder should warn the developer if it's not going to work.

Screenshots / recordings

N/A (see the screentshot above)

Your environment

  • Version of FlutterFlow used: latest
  • Platform (e.g. Web, MacOS Desktop): MacOS desktop
  • Browser name and version: Chrome latest
  • Operating system and version (desktop or mobile): desktop

Metadata

Metadata

Labels

status: can't reproduceFollowing the reported steps did not reproduce the bug.status: needs informationMore information/context is needed for assessment.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions