Skip to content

Local State Variable Rename #505

@strongishdeveloper

Description

@strongishdeveloper

Issue tracker is ONLY used for reporting bugs. New feature suggestions and questions should be discussed on Community or submitted through our user feedback form.

Your issue may already be reported! Please search in the issue tracker before creating one.

Please thumbs up this issue if you have also experienced it. You may also add more information if there is something relevant that was not mentioned. However, please refrain from comments that are not constructive, like "I have this problem too", etc.

Expected behavior (required)

Successful editing of the Field Name of a state variable

Current behavior (required)

When you change a local page state variables name, the build fails because a reference to the old name of the variable is hanging around in the dart file generated by FF.

lib/edit_athlete_profile/edit_athlete_profile_widget.dart:587:62: Error: The setter 'aditingWeightclass' isn't defined for the class 'EditAthleteProfileModel'.
 - 'EditAthleteProfileModel' is from 'package:---/edit_athlete_profile/edit_athlete_profile_model.dart' ('lib/edit_athlete_profile/edit_athlete_profile_model.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'aditingWeightclass'.
                                                      _model.aditingWeightclass =

To Reproduce (required)

Create a page with a local state variable
Set this variable through an action
Change the Fieldname of the variable
Build

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

IT48hc/1z89NocBE1qqBbMAxnjwWH0c7RK8o1tVHSQE8J5zKB+wAYvf7P1FWTLy5TX9PeGagkj8Jxvfqv+L+G/oCFEmbUb5nwqgMWgvzfGOmV6bROruJMS0ffaMKRSz+

Context (required)

The build fails without explaination of the issue, when run through Android Studio I can then see it.
Current work around is to delete the variable, then make a new one, then update any action that might reference it

Screenshots / recordings

Your environment

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

Metadata

Metadata

Labels

status: confirmedIssue has been reproduced and confirmed as a bug.type: bugSomething isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions