Check all checkboxes through parameters on dynamic list.

Actions & Logic

I'm having some issues trying to implement a check all check boxes and uncheck all..

Here is a screen shot to show the idea

The "Check all" is not part of the dynamic list.

The List itself is a generated with a component in order to access the datatype array in the document. The initial value of the checkbox on the component are bound to a boolean parameter.

I've tried

  • Binding the parameter directly to the Check All value.

  • Binding the parameter to a page state and updating the page state value on toggle on or off (Rebuilding the page)

  • Binding the initial checkbox value to an app state and updating the app state on toggle on off (Rebuild all pages)

  • Check all checkboxes action doesn't give access to the boxes in the components

  • Set form field on "Check all" also didn't work

Seems like the issue is that I can set the initial value of the checkbox, but that value doesn't get updated when the value on the parameter changes. ( I imagined a page rebuild would work)

Has anyone tried a custom function for this or found a workaround?

This seems pretty simple and I feel like I'm missing something.. any help would be greatly appreciated.

What have you tried so far?

Checked Documentation

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