How to Pass Selected Items with All Data to the Next Page in FlutterFlow

Troubleshooting

Hello everyone,

I'm working on a FlutterFlow project where I have a ListView displaying items of type "exercise" with multiple fields (e.g., name, category, sets, repetition and description) retrieved from a SQLite database. Each item in the ListView has a Checkbox. What I want to achieve is the following:

  1. Allow users to select multiple items using the Checkboxes in the ListView.

  2. Upon clicking a "Next" button, pass a list containing all the selected Exercise objects (with all their fields) to the next page.

  3. On the next page, I want to display this list in a reorderable format.

The problem I'm facing is adding the current Exercise item to a list when a Checkbox is checked. In the FlutterFlow interface, I can't seem to find the option to add the entire current item (with all its fields) to a local list. I need to be able to collect the selected items with all their data and pass this list to the next page.

Has anyone successfully done something similar in FlutterFlow? How can I add the current item with all its properties to a list and then pass this list to the next page?

Thanks for your help!

What have you tried so far?

I have tried several methods, but none seem to work. I tried setting the destination parameter as a List<Exercise> type and even as a SQL list. However, I can't seem to select the current item to add it to the page's list as a complete object, including all its fields, to use on the next page.

Has anyone successfully done something similar in FlutterFlow? How can I add the current item with all its properties to a list and then pass this list to the next page?

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