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:HealthInfoStaticIssue summary:
On theHealthInfoStaticpage, 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:
Created a new App State variable
bloodType(String, not persisted) โ confirmed it appears correctly in the App State list.On
HealthInfoStatic, selected a Container widget ("Aๅ" button).Configured On Tap โ Update App State โ Field:
bloodTypeโ Set Value โ Value: "Aๅ" โ Update Type: Rebuild Current Page. Confirmed/saved.Configured Fill Color โ Conditional Value (If/Then/Else) โ IF:
bloodType == 'Aๅ'โ THEN:#c9a84cโ ELSE: White. Confirmed/saved.Opened View Code for the
HealthInfoStaticpage, searched forbloodTypeโ result: 0/0 matches.Comparison test (working case):
The same mechanism works correctly on a different page,HealthKitAuth, where App State variables likeisHealthConnectedandhealthStepsDisplayDO 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 variableselectedGenderon the sameHealthInfoStaticpage โ 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. SearchingselectedGenderin the generated code also returned 0/0.Conclusion from our testing:
This appears to be isolated to theHealthInfoStaticpage itself โ not a project-wide App State issue (since HealthKitAuth works fine), and not specific to one variable (since both an old variableselectedGenderand a brand-new variablebloodTypeboth fail on this page).Please advise on how to resolve this, or whether the page needs to be rebuilt/restored from an earlier version.
App State variable not generating in code on one specific page (HealthInfoStatic)
Actions & Logic
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.
No
4
1 reply