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 85 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
0/5 points: Provide a valid CHANGELOG.md
`CHANGELOG.md` does not contain reference to the current version ("1.0.0+1").
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
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.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:windows_usb_printer/windows_usb_printer.dartthat imports:package:windows_usb_printer/src/windows_usb_printer_provider.dartthat imports:package:windows_usb_printer/src/model/windows_printer_info.dartthat imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `iOS`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:windows_usb_printer/windows_usb_printer.dartthat imports:package:windows_usb_printer/src/windows_usb_printer_provider.dartthat imports:package:windows_usb_printer/src/model/windows_printer_info.dartthat imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `Windows`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:android_usb_printer/android_usb_printer.dartthat declares support for platforms:Android.
Package does not support platform `Linux`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:windows_usb_printer/windows_usb_printer.dartthat imports:package:windows_usb_printer/src/windows_usb_printer_provider.dartthat imports:package:windows_usb_printer/src/model/windows_printer_info.dartthat imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `macOS`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:windows_usb_printer/windows_usb_printer.dartthat imports:package:windows_usb_printer/src/windows_usb_printer_provider.dartthat imports:package:windows_usb_printer/src/model/windows_printer_info.dartthat imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
Package does not support platform `Web`.
Because:
package:flutter_printer_plus/flutter_printer_plus.dartthat imports:package:flutter_printer_plus/src/flutter_printer_finder.dartthat imports:package:windows_usb_printer/windows_usb_printer.dartthat imports:package:windows_usb_printer/src/windows_usb_printer_provider.dartthat imports:package:windows_usb_printer/src/model/windows_printer_info.dartthat imports:package:windows_usb_printer/src/model/windows_printer_dev_mode.dartthat imports:package:win32/win32.dartthat declares support for platforms:Windows.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 7 issues. Showing the first 2:
INFO: Import of a library in the 'lib/src' directory of another package.
lib/src/tools/printer_command_tool.dart:3:8
╷
3 │ import 'package:esc_utils/src/commands.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/tools/printer_command_tool.dart
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
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.7.2 | |
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.7 | 3.0.7 | |
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.17.0 | 1.17.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider_android |
- | 2.2.22 | 2.2.22 | |
path_provider_foundation |
- | 2.5.1 | 2.5.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 |
- | 7.0.1 | 7.0.1 | |
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.2.0 | 2.2.0 | |
win32 |
- | 4.1.4 | 5.15.0 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.6.1 | 6.6.1 |
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.23.3, Flutter 3.38.4, Dart 3.10.3.
Check the analysis log for details.