flutter_weigh_serial 1.0.0+1 flutter_weigh_serial: ^1.0.0+1 copied to clipboard
提供电子秤数据获取能力,支持 Android、Windows 平台。
We analyzed this package 23 hours ago, and awarded it 105 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too short.
Add more detail to the description
field of pubspec.yaml
. Use 60 to 180 characters to describe the package, what it does, and its target use case.
The package description contains too many non-ASCII characters.
The site uses English as its primary language. The content of the description
field in your package's pubspec.yaml
should primarily contain characters used in English.
5/5 points: Provide a valid README.md
0/5 points: Provide a valid CHANGELOG.md
No `CHANGELOG.md` found.
Changelog entries help developers follow the progress of your package. Check out the Dart conventions for Maintaining a package changelog.
10/10 points: Use an OSI-approved license
Detected license: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
18 out of 52 API elements (34.6 %) have documentation comments.
Some symbols that are missing documentation: flutter_weigh_serial
, flutter_weigh_serial.BaseUsbSerialFactory
, flutter_weigh_serial.BaseUsbSerialFactory.BaseUsbSerialFactory
, flutter_weigh_serial.BaseUsbSerialFactory.usbSerial
, flutter_weigh_serial.PlatForm
.
10/10 points: Package has an example
0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that declares support for platforms:Windows
.
Package does not support platform `Windows`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_android.dart
that imports:package:usb_serial/usb_serial.dart
that declares support for platforms:Android
.
Package does not support platform `Linux`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that declares support for platforms:Windows
.
Package does not support platform `Web`.
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:flutter_weigh_serial/flutter_weigh_serial.dart
that imports:package:flutter_weigh_serial/src/usb_serial/usb_serial_factory.dart
that imports:package:flutter_weigh_serial/src/usb_serial/platform/usb_serial_windows.dart
that imports:package:serial_port_win32/serial_port_win32.dart
that imports:package:serial_port_win32/src/serial_port.dart
that imports:package:ffi/ffi.dart
that imports:package:ffi/src/utf8.dart
that imports:dart:ffi
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
lib/flutter_weigh_serial.dart doesn't match the Dart formatter.
To format your files run: dart format .
lib/src/extension/usb_serial_ex.dart doesn't match the Dart formatter.
To format your files run: dart format .
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
dartx |
^1.1.0 |
1.2.0 | 1.2.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
rxdart |
^0.27.7 |
0.27.7 | 0.28.0 |
serial_port_win32 |
^0.7.0 |
0.7.0 | 1.3.0 |
usb_serial |
^0.4.0 |
0.4.0 | 0.5.2 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
- | 2.11.0 | 2.11.0 |
characters |
- | 1.3.0 | 1.3.0 |
clock |
- | 1.1.1 | 1.1.1 |
collection |
- | 1.18.0 | 1.19.0 |
crypto |
- | 3.0.5 | 3.0.5 |
ffi |
- | 2.1.3 | 2.1.3 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.16.0 |
path |
- | 1.9.0 | 1.9.0 |
sky_engine |
- | 0.0.99 | 0.0.99 |
time |
- | 2.1.4 | 2.1.4 |
typed_data |
- | 1.3.2 | 1.3.2 |
vector_math |
- | 2.1.4 | 2.1.4 |
win32 |
- | 4.1.4 | 5.5.4 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 3 issues. Showing the first 2:
The constraint `^0.27.7` on rxdart does not support the stable version `0.28.0`.
Try running dart pub upgrade --major-versions rxdart
to update the constraint.
The constraint `^0.7.0` on serial_port_win32 does not support the stable version `1.1.0`.
Try running dart pub upgrade --major-versions serial_port_win32
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.22.12
, Flutter 3.24.3
, Dart 3.5.3
.
Check the analysis log for details.