sensor_library 0.1.0
sensor_library: ^0.1.0 copied to clipboard
This is a sensor library for Flutter, containing several native sensors to get raw data from and providing also interpreted data.
We analyzed this package 4 days ago, and awarded it 110 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
4 out of 178 API elements (2.2 %) 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.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: accelerometer, accelerometer.Accelerometer, accelerometer.Accelerometer.Accelerometer.new, accelerometer.Accelerometer.getRaw, accelerometer.Accelerometer.getRawWithGravity.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
0/0 points: WASM compatibility
This package is compatible with runtime wasm, and will be rewarded additional points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 16 issues. Showing the first 2:
WARNING: The '!' will have no effect because the receiver can't be null.
lib/models/raw_sensors/gps.dart:53:35
╷
53 │ timestamp: event.timestamp!.millisecondsSinceEpoch.toDouble()
│ ^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/raw_sensors/gps.dart
WARNING: Unused import: 'package:flutter/gestures.dart'.
lib/models/utils/movement_type_utils.dart:3:8
╷
3 │ import 'package:flutter/gestures.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/utils/movement_type_utils.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
environment_sensors |
^0.2.0 |
0.2.0 | 0.3.0 | |
flutter_barometer_plugin |
^0.0.1+3 |
0.0.1+3 | 0.0.1+3 | |
flutter_compass |
^0.7.0 |
0.7.0 | 0.8.1 | |
geolocator |
^8.0.5 |
8.2.1 | 14.0.2 | |
light |
^2.1.0 |
2.1.0 | 4.1.0 | |
proximity_sensor |
^1.0.2 |
1.3.9 | 1.3.9 | |
sensors_plus |
^1.3.0 |
1.4.1 | 7.0.0 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
geolocator_android |
- | 3.2.1 | 5.0.2 | |
geolocator_apple |
- | 2.3.13 | 2.3.13 | |
geolocator_platform_interface |
- | 4.2.6 | 4.2.6 | |
geolocator_web |
- | 2.2.1 | 4.1.3 | |
geolocator_windows |
- | 0.1.3 | 0.2.5 | |
logging |
- | 1.3.0 | 1.3.0 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.0 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
sensors_plus_platform_interface |
- | 1.2.0 | 2.0.1 | |
sensors_plus_web |
- | 1.1.2 | 1.1.2 | Discontinued |
vector_math |
- | 2.2.0 | 2.2.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 5 issues. Showing the first 2:
The constraint `^0.2.0` on environment_sensors does not support the stable version `0.3.0`.
Try running dart pub upgrade --major-versions environment_sensors to update the constraint.
The constraint `^0.7.0` on flutter_compass does not support the stable version `0.8.0`.
Try running dart pub upgrade --major-versions flutter_compass to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.8, Flutter 3.38.6, Dart 3.10.7.
Check the analysis log for details.