Mapping Selected ListView Items to AppState - Then add to Different AppState on 'add' Button Click

Hey all, first post here so apologies for the ignorance. So, I'm trying to build functionality so that a list is presented like so (image, text, checkbox). What I'm wanting to have happen is that when 1 to many items are checked in the ListView, it would add them to an app state of 'selecteditems'. Then, once they click an add button, the dialog would close and take the items from 'selecteditems' and append it to a different AppState 'currentexercises'. Essentially wanting to make it so that items selected in the listview are not actually added to the other AppState (currentexercises) until the 'add' button is clicked and the dialog has closed. Additionally, I'm wanting the selection to be additive (meaning I could have 1 to many resources of the same name added to the secondary AppState. In other words, someone could have two separate line items for a specific exercise in their 'currentexercises' list. Please let me know if there's any additional questions. I've spent more time on this before coming to the community so any guidance would be greatly appreciated!

6 replies