Open Food Facts - Dart

Dart package for the Open Food Facts API.

Content

The following API services are implemented:

getProduct

Get the product information for an existing barcode.

saveProduct

Add a new product or edit an existing one.

addProductImage

Add an product image of the front, the ingredients or the nutrition.

Getting Started

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

Development

auto generate the json classes

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.

running the unit tests

Adjust the file test_constants.dart to provide your own login credentials (OpenFoodFacts).

publish the package to pub.dartlang.org

run flutter packages pub publish in the project directory

Authors

Alexander Schacht - Grumpf86

Libraries

HttpHelper
ImageList
Ingredient
JsonObject
Product
ProductImage
ProductResult
SendImage
Status
TagI18N
User
openfoodfacts