windows_usb_printer 0.0.2+4
windows_usb_printer: ^0.0.2+4 copied to clipboard
Windows 平台使用,提供 1. 搜索获取已安装驱动的打印机列表 2. 向指定打印机发送打印内容
We analyzed this package 7 days ago, and awarded it 90 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
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.
0/5 points: Provide a valid README.md
`README.md` contains too many non-ASCII characters.
The site uses English as its primary language. The content of README.md
in your package should primarily contain characters used in English.
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
.
0/10 points: 20% or more of the public API has dartdoc comments
3 out of 43 API elements (7.0 %) 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: windows_usb_printer
, windows_usb_printer.FfiWindowsPrinterInfoExt
, windows_usb_printer.FfiWindowsPrinterInfoExt.info
, windows_usb_printer.ListPrinter
, windows_usb_printer.ListPrinter.ListPrinter.new
.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
- ✓ Windows
These platforms are not supported:
Package does not support platform `Android`.
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
Package does not support platform `Linux`.
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
Package does not support platform `Web`.
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:windows_usb_printer/windows_usb_printer.dart
that imports:package:windows_usb_printer/src/windows_usb_printer_provider.dart
that imports:package:windows_usb_printer/src/model/windows_printer_info.dart
that imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dart
that imports:package:win32/win32.dart
that imports:package:win32/src/com/iwbemservices.dart
that imports:package:win32/src/com/iunknown.dart
that imports:package:win32/src/utils.dart
that imports:package:win32/src/win32/user32.g.dart
that imports:package:win32/src/variant.dart
that imports:package:win32/src/structs.g.dart
that imports:package:win32/src/guid.dart
that imports:package:win32/src/win32/ole32.g.dart
that imports:package:win32/src/combase.dart
that imports:package:win32/src/macros.dart
that imports:package:win32/src/constants.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.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 9 issues. Showing the first 2:
WARNING: This API is available since SDK 2.16.0, but constraints '>=2.12.0 <3.0.0' don't guarantee it.
lib/src/ffi/printer_raw_ffi.dart:31:19
╷
31 │ phPrinter.value,
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/ffi/printer_raw_ffi.dart
WARNING: This API is available since SDK 2.16.0, but constraints '>=2.12.0 <3.0.0' don't guarantee it.
lib/src/ffi/printer_raw_ffi.dart:43:39
╷
43 │ return StartPagePrinter(phPrinter.value) != 0;
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/ffi/printer_raw_ffi.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
cupertino_icons |
^1.0.2 |
1.0.8 | 1.0.8 | |
ffi |
^2.0.2 |
2.1.4 | 2.1.4 | |
win32 |
^4.1.1 |
4.1.4 | 5.15.0 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
vector_math |
- | 2.2.0 | 2.2.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^4.1.1` on win32 does not support the stable version `5.0.0`.
Try running dart pub upgrade --major-versions 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.23
, Flutter 3.35.5
, Dart 3.9.2
.
Check the analysis log for details.