Here's what I created as a test. My data source is called 'Test'. First I added a checkbox to the Gallery that displays in each record. I added the following to the OnCheck property to add the ID of each selected record to a collection
Collect(selected,{ID:ThisItem.ID})This goes in the OnUncheck to remove the ID from the collection if unchecked
Remove(selected,{ID:ThisItem.ID})Then in my button to call the Flow (PowerAppsbutton-2) I used this code to build a comma delimeted string of the IDs in the selected collection
'PowerAppsbutton-2'.Run(Concat(selected,Text(ID),","))
Then in the Flow I Initialize a Variable using this formula to translate the CSV string to an Array
split(triggerBody()['Initializevariable_Value'],',')
That array then becomes the basis for my Apply to each loop to get each record and send the emails

Hope that helps.