-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
feat: #511 - nutrition page minor improvements #907
feat: #511 - nutrition page minor improvements #907
Conversation
Impacted file: * `nutrition_page_loaded.dart` * explicit labels for units * removed "energy" line and computed "energy-kj" and "energy-kcal" accordingly * unit conversion (e.g. x 1000 for mg from g) * new small default nutrient unit repository
|
There's no connection between kj and kcal. It's just that sometimes energy-kj was empty but energy was not and energy-unit was kj => instead of displaying an empty energy-kj, I populate it with energy.
If we don't do that, the values are wrong for mg and µg. Just test on a product with vitamin b12.
The conversion is just at init time. |
Impacted file:
nutrition_page_loaded.dart