flutter_gpiod 0.2.0
flutter_gpiod: ^0.2.0

Dart native
Flutter Android iOS

Dart package for accessing GPIO using the GPIO character device interface on linux / Android (root required). Supports signal edge listening, active state, open source/drain and (if supported by platf

3
likes
80 / 110
pub points
36 %
popularity

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

Follow Dart file conventions
10 / 20

0/10 points: Provide a valid pubspec.yaml

The package description is too long.

Search engines display only the first part of the description. Try to keep the value of the description field in your package's pubspec.yaml file between 60 and 180 characters.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

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

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

  • 43 out of 61 API elements (70.5 %) have documentation comments.
Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:flutter_gpiod/flutter_gpiod.dart that imports:
  • package:flutter_gpiod/src/gpiod.dart that imports:
  • package:flutter_gpiod/src/bindings.dart that imports:
  • package:flutter_gpiod/src/bindings/libc64_bindings.g.dart that imports:
  • dart:ffi
Pass static analysis
20 / 30

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

Found 3 issues. Showing the first 2:

INFO: DO use curly braces for all flow control structures.

lib/src/bindings.dart:227:27

    ╷
227 │       if (method != null) msg += ": ";
    │                           ^^^^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/bindings.dart

lib/src/bindings.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
ffi^0.1.30.1.30.1.3
meta^1.1.81.2.41.2.4
path^1.7.01.7.01.7.0
tuple^1.0.31.0.31.0.3
Transitive dependencies
PackageConstraintCompatibleLatest
matcher-0.12.90.12.9
quiver-2.1.52.1.5
stack_trace-1.9.61.9.6

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

3
likes
80
pub points
36%
popularity

Publisher

ardera.dev

Dart package for accessing GPIO using the GPIO character device interface on linux / Android (root required). Supports signal edge listening, active state, open source/drain and (if supported by platform) bias.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi, meta, path, tuple

More

Packages that depend on flutter_gpiod