openfoodfacts 0.3.12+1

Flutter Android iOS

Dart package for the Open Food Facts API, a food products database made by everyone, for everyone.

13
likes
80 / 110
pub points
71 %
popularity

We analyzed this package on Sep 29, 2020, and awarded it 80 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

0/10 points: 20% or more of the public API has dartdoc comments

  • 42 out of 1265 API elements (3.3 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Consider supporting multiple platforms:

Package not compatible with runtime flutter-web on Web

Because:

  • package:openfoodfacts/openfoodfacts.dart that imports:
  • package:openfoodfacts/utils/HttpHelper.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 5 issues. Showing the first 2:

INFO: The declaration '_$SearchResultFromJson' isn't referenced.

lib/model/SearchResult.g.dart:9:14

  ╷
9 │ SearchResult _$SearchResultFromJson(Map<String, dynamic> json) {
  │              ^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using pedantic and run flutter analyze lib/model/SearchResult.g.dart

lib/model/SearchResult.dart is not formatted according to dartfmt

To format your files run: dartfmt -w .

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
async_loader^0.1.20.1.20.1.2
http^0.12.00.12.20.12.2
image^2.1.42.1.182.1.18
json_annotation^3.1.03.1.03.1.0
path^1.7.01.7.01.7.0
Transitive dependencies
PackageConstraintCompatibleLatest
archive-2.0.132.0.13
args-1.6.01.6.0
characters-1.0.01.0.0
charcode-1.1.31.1.3
collection-1.14.131.14.13
convert-2.1.12.1.1
crypto-2.1.52.1.5
flutter-0.0.00.0.0
http_parser-3.1.43.1.4
meta-1.1.81.2.3
pedantic-1.9.01.9.2
petitparser-3.0.43.1.0
sky_engine-0.0.990.0.99
source_span-1.7.01.7.0
string_scanner-1.0.51.0.5
term_glyph-1.1.01.1.0
typed_data-1.2.01.2.0
vector_math-2.0.82.0.8
xml-4.5.14.5.1

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

13
likes
80
pub points
71%
popularity

Dart package for the Open Food Facts API, a food products database made by everyone, for everyone.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

a.schaefer@playsys.de
primael@reefind.com
peter.w.v.jorgensen@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

async_loader, http, image, json_annotation, path

More

Packages that depend on openfoodfacts