Passing hidden data while using listView and generating children from variable

This one has me stumped, if anyone has suggestions here it would be super appreciated.

I'm using a listView (with generating children from variable) to generate items from an API call, the items are displayed in buttons and works well. A user clicks one of the buttons and I can pass that parameter to the next page without issues. Lets call the field "product name".

However, in that same API response there is another field , lets call it "product id" which correlates to the "product name"

I dont want to show the product id anywhere, I just want to pass it on to the next page.

I was thinking of using an app state variable to store the product ID but how would I pass the specific "product id" from the generated children variable?

Thanks in advance

P.S. I read through the relevant docs on flutterflow and couldn't really find anything having to do with retrieving/passing hidden fields.

3 replies