Issue with Checkbox inside ListView not updating state correctly

Actions & Logic

Hi everyone,

I’m currently building a FlutterFlow app and I’ve run into a strange behavior when using Checkboxes widgets inside a ListView. I’m not binding the checkbox to my backend — I just want the checkboxes to toggle visually and update local state (an AppState list of selected items).

Here’s the structure:

  • I have a ListView that displays a list of "sectors".

  • Each sector has a CheckBox next to its name.

  • I created an AppState variable called SelectedSectors to store which sectors are selected.

  • On toggle, I update SectedSectors, removing or adding the sectors in the ListView.

The issue:

  • When I click the first checkbox, everything works fine. Then if I click the second checkbox, that works too.

  • But if I click the second checkbox first, before interacting with the first one, nothing happens — no toggle, no action triggered.

Has anyone experienced this? Any clean way to make checkboxes inside ListViews work with local state only ?
Would love any help or best practices!

Thanks in advance 🙏

What have you tried so far?

=> Extensive search of documentation + ChatGPT

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