Hello everyone, thank you in advance for the help.
I'm currently working on an app where I'm creating a "insert product" flow.
All the data is saved in 3 persisted AppStates of custom DataTypes, 2 of which are lists.
I'm trying to insert all this data in a Supabase database "at once", via the click of a single button, when the user finishes adding the product informations.
Unluckily I was not able to make this work properly, although I'm kind of there, I think.
Below is my current solution.
At first it returned an Authentication error that I fixed by getting the authenticated user.
As for the current issue, the data is added, but it just creates empty rows with the primary keys, and the foreign keys are correctly linked (that works at least!), but it doesn't add any other field:
Error creating product with details: NoSuchMethodError: method not found: 'data' Receiver: Instance of 'minified:aqG'
Arguments: []
I already checked if I correctly pass the data from te Flutterflow frontend, as shown in the linked image