-
-
Notifications
You must be signed in to change notification settings - Fork 259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Preference for 'per 100g' vs 'per serving' toggle #3615
Comments
The 100g/serving switch value is either the one from the downloaded product, or with a default of 100g (for new products), cf. _initialPerSize = perSize =
PerSize.fromOffTag(product.nutrimentDataPer) ?? PerSize.oneHundredGrams; What you want is a new preference in order to change the default value for new products to "per serving", so that each time you input a new product, "per serving" would be selected, right? |
@BhuvanAde As suggested, please add a user preference about the default "per 100g / per serving" and use it as default value in the nutrition fact page. |
@monsieurtanuki I would like to work on this to select the default value, should I add the toggle inside App Settings -> Products |
@ooprathamm I'm already working on this issue. |
@monsieurtanuki I'm so sorry forgot about this. I wasn't clear with the issue I see a similar type of issue #3617 are we moving forward with this issue? |
@BhuvanAde Please add the default switch 100g/serving in the preferences (default 100g), and use it as default in the nutrition page. |
@BhuvanAde Still working on it, or may we reassign this issue? |
Problem
In the US, nutrition facts are only provided 'per serving' which could be any number of grams/ounces/etc. It would be ideal to make a user preference for this, as I imagine it is largely region-dependent.
Proposed solution
Store this toggle as a shared_preference
Part of
The text was updated successfully, but these errors were encountered: