sunmi_printer_service 0.1.3 copy "sunmi_printer_service: ^0.1.3" to clipboard
sunmi_printer_service: ^0.1.3 copied to clipboard

PlatformAndroid

商米打印服务

3
likes
100/ 140
pub points
28%
popularity

We analyzed this package 7 days ago, and awarded it 100 pub points (of a possible 140):

failed
Follow Dart file conventions
10 / 30trigger folding of the section

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.

Failed to verify repository URL.

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: sunmi_printer_service,
    • contains a version property, and,
    • does not contain a publish_to property.

Unable to access git repository: Could not accept branch name: Main.

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

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

10/10 points: Use an OSI-approved license

Detected license: MIT.

OK
Provide documentation
20 / 20trigger folding of the section

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

28 out of 50 API elements (56.0 %) have documentation comments.

Some symbols that are missing documentation: barcode_enum, barcode_enum.BarCodeTextTypeExt, barcode_enum.BarCodeTextTypeExt.value, barcode_enum.BarCodeTypeExt, barcode_enum.BarCodeTypeExt.value.

10/10 points: Package has an example

OK
Platform support
20 / 20trigger folding of the section

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:sunmi_printer_service/sunmi_printer_service.dart that declares support for platforms: Android.
Package does not support platform `Windows`.

Because:

  • package:sunmi_printer_service/sunmi_printer_service.dart that declares support for platforms: Android.
Package does not support platform `Linux`.

Because:

  • package:sunmi_printer_service/sunmi_printer_service.dart that declares support for platforms: Android.
Package does not support platform `macOS`.

Because:

  • package:sunmi_printer_service/sunmi_printer_service.dart that declares support for platforms: Android.
Package does not support platform `Web`.

Because:

  • package:sunmi_printer_service/sunmi_printer_service.dart that declares support for platforms: Android.
failed
Pass static analysis
30 / 50trigger folding of the section

30/50 points: code has no errors, warnings, lints, or formatting issues

Found 3 issues. Showing the first 2:

WARNING: Unused import: 'dart:ffi'.

lib/sunmi_printer_service.dart:2:8

  ╷
2 │ import 'dart:ffi';
  │        ^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/sunmi_printer_service.dart

WARNING: This function has a nullable return type of 'FutureOr

lib/sunmi_printer_service.dart:157:23

    ╷
157 │   static Future<int?> cutPaperTimes() async {
    │                       ^^^^^^^^^^^^^
    ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/sunmi_printer_service.dart

OK
Support up-to-date dependencies
20 / 20trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
flutter flutter 0.0.0 0.0.0
Transitive dependencies
Package Constraint Compatible Latest
characters - 1.3.0 1.3.0
collection - 1.18.0 1.18.0
material_color_utilities - 0.8.0 0.11.1
meta - 1.11.0 1.14.0
sky_engine - 0.0.99 0.0.99
vector_math - 2.1.4 2.1.4

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

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

Analyzed with Pana 0.22.3, Flutter 3.19.5, Dart 3.3.3.

Check the analysis log for details.