vegan_check_api 1.0.4
SDKflutter
Platformandroidioswindowslinuxmacosweb
A simple api library to check barcodes if they are vegan, vegetarian etc.
Overview
This small package allows the user to search for a product based on the barcode of the product.
Features
The following things will be returned:
- status
- product
- productname
- vegan
- vegetarian
- animaltestfree
- palmoil
- nutriscore
- grade
- sources
- processed
- api
- baseuri
Getting started
Used Packages:
Usage
import 'package:vegan_check_api/vegan_check_api.dart';
void main() async {
Response response = await productSearch('3017620422003') // Nutella - Ferrero - 400g
print(response.status); // 200
print(response.product.productname); // Nutella - Ferrero - 400g
print(response.sources.api); // OpenFoodFacts
}
Additional information
This package is based on the VeganCheck-Api here