dart package for the Open Food Facts API
Open Food Facts - Dart #
Dart package for the Open Food Facts API.
The following API services are implemented:
Get the product information for an existing barcode.
Add a new product or edit an existing one.
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.
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
Alexander Schacht - Grumpf86