problem with scaling ingredients in a recipe app

Database & APIs

I am making a cooking recipe application on flutterflow and I have a problem...

In the ingredients part, I would like to put a scaling system. In my table (supabase) with the recipes, I have 4 data corresponding to the number of people, the weight, the volume and the number of units. It is possible that a recipe only gives one or two of these values ​​and that the others are useless.

In my recipe display page, I have a tapbar with the list of ingredients and a scaling button that opens a popup (see the image).

I am trying to make it so that if I click on + in person, 5 people should be displayed and the other values ​​are updated (500g, 500ml, 5 pieces in this example).

The multiplier used (in this example x1.25) should be stored first in the table when saving.

Then, the popup disappears and the list of ingredients is modified according to the multiplier.

Can someone guide me?

Thanks in advance!

What have you tried so far?

I tried at first to trust chat gpt to help me but apparently his information is not up to date (-_-) ...

I also search if somebody make tutorial about this kind of feature but I didn't find any

Did you check FlutterFlow's Documentation for this topic?
No
2
7 replies