App State variable not generating in code on one specific page (HealthInfoStatic)

Actions & Logic

Subject: App State variable bindings not appearing in generated code for one specific page

Project: SFK V1 Core (s-f-k-v1-core-ftadhu)
Affected page: HealthInfoStatic

Issue summary:
On the HealthInfoStatic page, any App State variable referenced via Action Flow (Update App State) or Widget Fill Color (Conditional Value If/Then/Else) does not appear in the generated Dart code at all โ€” 0 occurrences when searching the page's code.

Steps to reproduce:

  1. Created a new App State variable bloodType (String, not persisted) โ€” confirmed it appears correctly in the App State list.

  2. On HealthInfoStatic, selected a Container widget ("Aๅž‹" button).

  3. Configured On Tap โ†’ Update App State โ†’ Field: bloodType โ†’ Set Value โ†’ Value: "Aๅž‹" โ†’ Update Type: Rebuild Current Page. Confirmed/saved.

  4. Configured Fill Color โ†’ Conditional Value (If/Then/Else) โ†’ IF: bloodType == 'Aๅž‹' โ†’ THEN: #c9a84c โ†’ ELSE: White. Confirmed/saved.

  5. Opened View Code for the HealthInfoStatic page, searched for bloodType โ€” result: 0/0 matches.

Comparison test (working case):
The same mechanism works correctly on a different page, HealthKitAuth, where App State variables like isHealthConnected and healthStepsDisplay DO appear correctly in the generated code with proper assignment statements (e.g. FFAppState().isHealthConnected = true;).

Earlier symptom that led to this investigation:
This was first discovered while debugging an existing variable selectedGender on the same HealthInfoStatic page โ€” clicking gender option buttons triggered the On Tap action (confirmed via Show Snack Bar test) and all UI configuration appeared correct (Update App State + Fill Color conditional both configured properly), but the button background color never changed. Searching selectedGender in the generated code also returned 0/0.

Conclusion from our testing:
This appears to be isolated to the HealthInfoStatic page itself โ€” not a project-wide App State issue (since HealthKitAuth works fine), and not specific to one variable (since both an old variable selectedGender and a brand-new variable bloodType both fail on this page).

Please advise on how to resolve this, or whether the page needs to be rebuilt/restored from an earlier version.

What have you tried so far?

Verified the same App State mechanism works correctly on a different page (HealthKitAuth) in the same project. Tried creating a brand-new variable (bloodType) from scratch to rule out a corrupted single variable. Re-confirmed all configuration steps multiple times via screenshots. Cross-checked that the click event itself fires correctly (via Show Snack Bar test). The issue persists specifically on the HealthInfoStatic page regardless of which App State variable is used.

Did you check FlutterFlow's Documentation for this topic?
No
4
1 reply