yjy_flutter_printer_plus 0.0.4 copy "yjy_flutter_printer_plus: ^0.0.4" to clipboard
yjy_flutter_printer_plus: ^0.0.4 copied to clipboard

PlatformAndroid

flutter 端 【小票、标签】打印能力实现,直接将 flutter widget 转图像数据进行打印。

105/ 160
pub points
5
downloads

We analyzed this package 3 days ago, and awarded it 105 pub points (of a possible 160):

Failed report section
Follow Dart file conventions
15 / 30trigger folding of the section

Failed check 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.

Failed to verify repository URL.

Repository has no matching pubspec.yaml with name: yjy_flutter_printer_plus.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: yjy_flutter_printer_plus,
    • contains a version property, and,
    • does not contain a publish_to property.

Failed check 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.

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

Passed report section
Provide documentation
20 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

498 out of 2243 API elements (22.2 %) 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.

Passed check 10/10 points: Package has an example

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 1 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

These platforms are not supported:

Package does not support platform `iOS`.

Because:

  • package:yjy_flutter_printer_plus/flutter_printer_plus.dart that imports:
  • package:yjy_flutter_printer_plus/src/io/usb_conn.dart that imports:
  • package:yjy_android_usb_printer/android_usb_printer.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:yjy_flutter_printer_plus/flutter_printer_plus.dart that imports:
  • package:yjy_flutter_printer_plus/src/io/usb_conn.dart that imports:
  • package:yjy_android_usb_printer/android_usb_printer.dart that declares support for platforms: Android.
Package does not support platform `Linux`.

Because:

  • package:yjy_flutter_printer_plus/flutter_printer_plus.dart that imports:
  • package:yjy_flutter_printer_plus/src/io/usb_conn.dart that imports:
  • package:yjy_android_usb_printer/android_usb_printer.dart that declares support for platforms: Android.
Package does not support platform `macOS`.

Because:

  • package:yjy_flutter_printer_plus/flutter_printer_plus.dart that imports:
  • package:yjy_flutter_printer_plus/src/io/usb_conn.dart that imports:
  • package:yjy_android_usb_printer/android_usb_printer.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:yjy_flutter_printer_plus/flutter_printer_plus.dart that imports:
  • package:yjy_flutter_printer_plus/src/tools/printer_command_tool.dart that imports:
  • package:yjy_flutter_printer_plus/src/tools/image_tool.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.
Partially passed report section
Pass static analysis
40 / 50trigger folding of the section

Partially passed check 40/50 points: code has no errors, warnings, lints, or formatting issues

INFO: The import of 'image_tool.dart' is unnecessary because all of the used elements are also provided by the import of 'package:yjy_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

Failed report section
Support up-to-date dependencies
10 / 40trigger folding of the section

Failed check 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
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.1 0.0.2 0.0.2
yjy_android_usb_printer ^0.0.2+4 0.0.2+4 0.0.2+4
yjy_esc_utils ^0.0.2 0.0.2 0.0.2
yjy_tsc_utils ^0.0.2 0.0.2 0.0.2
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.5 2.1.5
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
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 `^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.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 4 errors:

  • 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.
  • UNDEFINED_IDENTIFIER - lib/src/service/isolate/isolate_balance.dart:10:7 - Undefined name 'LoadBalancer'.

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.5, Flutter 3.38.5, Dart 3.10.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
105
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

flutter 端 【小票、标签】打印能力实现,直接将 flutter widget 转图像数据进行打印。

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

cupertino_icons, flutter, image, isolates, path_provider, print_image_generate_tool, yjy_android_usb_printer, yjy_esc_utils, yjy_tsc_utils

More

Packages that depend on yjy_flutter_printer_plus