flutter_printer_plus 1.0.0+1
flutter_printer_plus: ^1.0.0+1 copied to clipboard
flutter 端 【小票、标签】打印能力实现,直接将 flutter widget 转图像数据进行打印。(支持Android、Windows平台)
We analyzed this package 3 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.
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: BSD-3-Clause
.
10/10 points: 20% or more of the public API has dartdoc comments
502 out of 2253 API elements (22.3 %) have documentation comments.
Some symbols that are missing documentation: flutter_printer_plus
, flutter_printer_plus.Animation.Animation.new
, flutter_printer_plus.BitUtility
, flutter_printer_plus.BitUtility.BITSCALE_3_TO_8
, flutter_printer_plus.BitUtility.BITSCALE_4_TO_8
.
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_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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 `Windows`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports:package:android_usb_printer/android_usb_printer.dart
that declares support for platforms:Android
.
Package does not support platform `Linux`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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:flutter_printer_plus/flutter_printer_plus.dart
that imports:package:flutter_printer_plus/src/flutter_printer_finder.dart
that imports: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.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 6 issues. Showing the first 2:
INFO: The import of 'image_tool.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter_printer_plus/flutter_printer_plus.dart'.
lib/src/tools/printer_command_tool.dart:6:8
╷
6 │ import 'image_tool.dart';
│ ^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/tools/printer_command_tool.dart
/tmp/pana_PYCBIW/lib/flutter_printer_plus.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 | Notes |
---|---|---|---|---|
android_usb_printer |
^0.0.1 |
0.0.2+4 | 1.0.0+1 | |
cupertino_icons |
^1.0.2 |
1.0.8 | 1.0.8 | |
esc_utils |
^0.0.1 |
0.0.1 | 0.0.1 | |
image |
^3.0.2 |
3.3.0 | 4.5.4 | |
isolates |
^3.0.3 |
3.0.3+8 | 3.0.3+8 | |
path_provider |
^2.0.12 |
2.1.5 | 2.1.5 | |
print_image_generate_tool |
^0.0.2 |
0.0.2 | 0.0.2 | |
r_get_ip |
^0.1.1 |
0.1.3 | 0.1.3 | |
tsc_utils |
^0.0.1 |
0.0.1+2 | 0.0.1+2 | |
windows_usb_printer |
^0.0.2+4 |
0.0.2+4 | 0.0.2+4 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
archive |
- | 3.6.1 | 4.0.7 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
csslib |
- | 1.0.2 | 1.0.2 | |
ffi |
- | 2.1.4 | 2.1.4 | |
gbk_codec |
- | 0.4.0 | 0.4.0 | |
hex |
- | 0.2.0 | 0.2.0 | |
html |
- | 0.15.6 | 0.15.6 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_android |
- | 2.2.17 | 2.2.17 | |
path_provider_foundation |
- | 2.4.1 | 2.4.1 | |
path_provider_linux |
- | 2.2.1 | 2.2.1 | |
path_provider_platform_interface |
- | 2.1.2 | 2.1.2 | |
path_provider_windows |
- | 2.3.0 | 2.3.0 | |
petitparser |
- | 6.1.0 | 7.0.0 | |
platform |
- | 3.1.6 | 3.1.6 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
source_span |
- | 1.10.1 | 1.10.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.1.4 | 2.2.0 | |
win32 |
- | 4.1.4 | 5.14.0 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.5.0 | 6.6.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^0.0.1` on android_usb_printer does not support the stable version `1.0.0+1`.
Try running dart pub upgrade --major-versions android_usb_printer
to update the constraint.
The constraint `^3.0.2` on image does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions image
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 6 errors:
UNDEFINED_NAMED_PARAMETER
-lib/src/io/usb_conn.dart:54:7
- The named parameter 'singleLimit' isn't defined.URI_DOES_NOT_EXIST
-lib/src/service/isolate/isolate_balance.dart:3:8
- Target of URI doesn't exist: 'package:isolates/isolates.dart'.NON_TYPE_AS_TYPE_ARGUMENT
-lib/src/service/isolate/isolate_balance.dart:9:23
- The name 'LoadBalancer' isn't a type, so it can't be used as a type argument.
Run flutter pub downgrade
and then flutter analyze
to reproduce the above problem.
You may run dart pub upgrade --tighten
to update your dependency constraints, see dart.dev/go/downgrade-testing for details.
Analyzed with Pana 0.22.21
, Flutter 3.32.4
, Dart 3.8.1
.
Check the analysis log for details.