Dart package for the Open Food Facts API.
The following API services are implemented:
Get the product information for an existing barcode. Prepare ingredients, images and product name depending on the specified language.
Get the product information for an existing barcode without additional preparation.
Add a new product or edit an existing one, using the specified Open Food Facts user credentials.
Add an product image of the front, the ingredients or the nutrition, using the specified Open Food Facts user credentials.
Search for all products matching to the given parameters. Optional: use a language specific host.
For help getting started with Flutter, view our online flutter docs. For help on editing package code, view the package docs.
By running (in command prompt) flutter packages pub run build_runner build in our project root, you can generate json serialization code for our models whenever needed.
Adjust the file test_constants.dart to provide your own login credentials (OpenFoodFacts).
run flutter packages pub publish in the project directory
- Alexander Schacht - Grumpf86