Comments (3)
re search, i would like to be able to fuzzy search, for example "pudd dan" would include "danone pudding"
re displaying brand, it seems the api currently doesn't include this information, perhaps @rolandgeider can find a way to include it.
from flutter.
It seems the API has brands : https://pub.dev/documentation/openfoodfacts/latest/openfoodfacts/OpenFoodAPIClient/getProductV3.html
Here is how Energize searches for OFF products : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/services/food_database_bindings/open_food_facts/open_food_facts_binding.dart#L56
and how they consume the results from OFF : https://codeberg.org/epinez/Energize/src/commit/f96c9183c0f4537dac70673055fb704135c16017/lib/models/food/food.dart#L242
from flutter.
FWIW i meant the wger api.
it looks like energize may work directly with OFF.
in wger, we import from OFF via background jobs into the database, and then expose the database via the wger api (to the wger flutter app, the wger web UI, etc)
the job: https://github.com/wger-project/wger/blob/master/wger/nutrition/management/commands/import-off-products.py
it uses the code here https://github.com/wger-project/wger/blob/5c7192317a1f05fec64af33caf4224f4a4d49b05/wger/nutrition/off.py#L72 , it looks like we include brand into the database but i don't think we expose it via the wger api.
from flutter.
Related Issues (20)
- Download .apk from github directly with Obtainium HOT 2
- Workout start time is set to current time on workout end
- Support Android 13 per-app languages
- broken updating of nutritional plan probably due to json decoding failing HOT 2
- improve exception tracking
- I cannot Register
- incorrect timezone handling for ingredient logs, causes consumed items to show up for yesterday instead of today HOT 3
- Problems building app for linux HOT 4
- Better filtering in the ingredient search HOT 1
- Improve Contribution Guidelines HOT 3
- confusing nutrition diary form state and integration of OFF scan result
- Cannot register. HOT 5
- null support for NutritionalValues HOT 6
- remove info button which expands nutritional plan dashboard widgets HOT 4
- per ingredient fine adjustment when logging meals
- Android App doesn't detect fitness exercises HOT 1
- Implement Android Halth Connect and Apple Health sync HOT 3
- Set weight interface seems clumsy HOT 1
- Apps should offer to add new igredients after EAN code not found HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.