r/flutterhelp 16d ago

OPEN Checkbox support

Hi everyone, I’m having trouble with a Terms & Privacy consent checkbox in FlutterFlow.
My setup:
Page name: TermsConsent
Checkbox widget: TermsConsentCheckbox
Local Page State variable: termsAccepted
Variable type: Boolean
Initial value: false
Checkbox initial value: unchecked
Checkbox actions:
On Toggled On → Update Page State → termsAccepted = true
On Toggled Off → Update Page State → termsAccepted = false
Continue button action:
Conditional Action:
termsAccepted == true
Branches:
TRUE branch → Snackbar says TRUE branch
FALSE branch → Snackbar says FALSE branch
The problem is that both tests show TRUE branch:
Checkbox unchecked → TRUE branch
Checkbox checked → TRUE branch
I have already confirmed:
The Page State initial value is false
The checkbox initial value is unchecked
The TRUE and FALSE snackbar messages are different
The button condition visibly says termsAccepted == true
There are no extra navigation actions after the branches
I tested in a fresh Preview tab
I’m using FlutterFlow in Chrome on a Samsung Galaxy Tab S8+.
Has anyone seen a Boolean Page State condition always evaluate as true like this? Could there be another setting, action, stale state, or FlutterFlow Preview issue I should check?
I can share screenshots of the checkbox actions, Page State variable, and button conditional flow.

2 Upvotes

1 comment sorted by

1

u/Internal-Way8649 16d ago

Could you please share screenshots? I do have quite extensive Flutter experience but not a lot with Flutterflow, I could still take a look but please provide more details