Skip to content

Text widget Visibility → Conditional does not update on Page State boolean change (Switch toggle) #7291

Description

@taimoork89-maker

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

Reporting this as a separate issue per a maintainer's suggestion on #7244, since that thread was stale.
Issue: A Text widget's Visibility → Conditional, bound to a Page State boolean, does not re-evaluate when that boolean changes via a Switch's "On Toggled" action + Rebuild Current Page.
Steps to reproduce:

Create a Page State variable (Boolean)
Add a Switch with On Toggled On/Off actions that set the variable to True/False respectively (Update Type: Rebuild Current Page)
Add two Text widgets with static text, each with Visibility → Conditional bound to that same boolean (one direct, one with Apply Opposite Statement)
Launch Preview and toggle the switch

Expected: Only the matching Text widget shows at any time.
Actual: Both remain visible regardless of toggle state.
Confirmed not a caching issue — reproduced in a fresh incognito window, on a brand-new isolated test page, and with a newly created boolean variable (ruling out any state-specific corruption).

ITFfzPLq4ot2vsdG176ILcdvo2URNVscTYMvjuphcx4YGIyrE4ouYMnOX0NKTMSqY0FADUyZsHIdwvzVuPL9Vu03BzKYfphN0JVAZw3zQnGtb8mPCc2WYHxDN8JMG26v4cKJvRF/KvRYciU623GPNa3qNleeY8aSfxBlZ7vfcPo=

Expected Behavior

Reporting this as a separate issue per a maintainer's suggestion on #7244, since that thread was stale.
Issue: A Text widget's Visibility → Conditional, bound to a Page State boolean, does not re-evaluate when that boolean changes via a Switch's "On Toggled" action + Rebuild Current Page.
Steps to reproduce:

Create a Page State variable (Boolean)
Add a Switch with On Toggled On/Off actions that set the variable to True/False respectively (Update Type: Rebuild Current Page)
Add two Text widgets with static text, each with Visibility → Conditional bound to that same boolean (one direct, one with Apply Opposite Statement)
Launch Preview and toggle the switch

Expected: Only the matching Text widget shows at any time.
Actual: Both remain visible regardless of toggle state.
Confirmed not a caching issue — reproduced in a fresh incognito window, on a brand-new isolated test page, and with a newly created boolean variable (ruling out any state-specific corruption).

Steps to Reproduce

Reporting this as a separate issue per a maintainer's suggestion on #7244, since that thread was stale.
Issue: A Text widget's Visibility → Conditional, bound to a Page State boolean, does not re-evaluate when that boolean changes via a Switch's "On Toggled" action + Rebuild Current Page.
Steps to reproduce:

Create a Page State variable (Boolean)
Add a Switch with On Toggled On/Off actions that set the variable to True/False respectively (Update Type: Rebuild Current Page)
Add two Text widgets with static text, each with Visibility → Conditional bound to that same boolean (one direct, one with Apply Opposite Statement)
Launch Preview and toggle the switch

Expected: Only the matching Text widget shows at any time.
Actual: Both remain visible regardless of toggle state.
Confirmed not a caching issue — reproduced in a fresh incognito window, on a brand-new isolated test page, and with a newly created boolean variable (ruling out any state-specific corruption).

Reproducible from Blank

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

Bug Report Code (Required)

ITFfzPLq4ot2vsdG176ILcdvo2URNVscTYMvjuphcx4YGIyrE4ouYMnOX0NKTMSqY0FADUyZsHIdwvzVuPL9Vu03BzKYfphN0JVAZw3zQnGtb8mPCc2WYHxDN8JMG26v4cKJvRF/KvRYciU623GPNa3qNleeY8aSfxBlZ7vfcPo=

Visual documentation

Image Image

Environment

FlutterFlow version: 7.0.23
Flutter version: 3.38.6
Platform (MacOS Desktop): Web
Browser name and version (web): Chrome
Operating system and version (desktop): macOS Tahoe 26.5.1 (25F80)

Additional Information

I am trying to complete the page before I can launch the app and this is holding me back from the launch.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions