Difference between API and flutter/dart Package #721
Replies: 3 comments 6 replies
-
Hi @MartinForgetProfessionnal! If needed I can go back to the different comments in closed issues, but I think that the rule is that "salt" is in grams:
Btw the getter does not exist anymore, since last December I think. Please keep us posted if you find discrepancies regarding values and units, between the API and dart. |
Beta Was this translation helpful? Give feedback.
-
that is the part that gets me messing me up... |
Beta Was this translation helpful? Give feedback.
-
Hi! i was first using the API and then realised that there was a package for flutter/dart, so i made the switch, but i noticed some differences and one of them i can't figure how to resolve the problem it causes me.
I use nutrients values per serving, but in some cases the mesurement unit differt from mg to g for exemple... In my first version, working with the API i had no problem because i had the option tto display salt_unit. With the package, the getter is deprecated and it's replaced with typicalUnit which doesn't vary to fit the value per serving that is returned. The thing is that i really don't want to make 2 request to fetch that unic missing information.
So my question is... Can i get that unit (dynamicly) somehow using the package?
Beta Was this translation helpful? Give feedback.
All reactions