Issues with custom functions

Custom Code

i have 2 very simple custom functions.

  1. to sum the total of a column in an app state cart list

  2. to check if a product id exists in the appstate cart list

the problem is that the totalsum function works fine but when i add another function e.g. checkproduct function then it suddenly finds errors in the new function as well as the other function. yet when i delete the new function then everything works again. But sometimes when i delete the new function the old one shows errors all together constantly. have to delete everything and start again.

both these functions work perfectly well in another app but i cant seem to get them to work in my new app.

and then sometimes it work and suddenly it stops working the next day. VERY FRUSTRATING

What have you tried so far?

I have tried manually re-typing the code, aso i used the code pilot ai to generate the code and the problem still seems to persist.

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