esc_pos_utils 1.1.0 copy "esc_pos_utils: ^1.1.0" to clipboard
esc_pos_utils: ^1.1.0 copied to clipboard

Basic Flutter/Dart classes for ESC/POS printing. Ticket class generates ESC/POS commands that can be sent to a thermal printer.

110/ 160
pub points
5.93k
downloads

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

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

Passed check 10/10 points: Provide a valid pubspec.yaml

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

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

51 out of 147 API elements (34.7 %) have documentation comments.

Some symbols that are missing documentation: esc_pos_utils, esc_pos_utils.Barcode, esc_pos_utils.Barcode.data, esc_pos_utils.Barcode.type, esc_pos_utils.BarcodeFont.

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 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

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

Found 18 issues. Showing the first 2:

WARNING: Unused import: 'dart:convert'.

lib/src/capability_profile.dart:10:8

   ╷
10 │ import 'dart:convert' show utf8;
   │        ^^^^^^^^^^^^^^
   ╵

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

WARNING: The operand can't be 'null', so the condition is always 'false'.

lib/src/capability_profile.dart:47:19

   ╷
47 │     if (codePages == null) {
   │                   ^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/src/capability_profile.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
gbk_codec ^0.4.0 0.4.0 0.4.0
hex ^0.2.0 0.2.0 0.2.0
image ^3.0.2 3.3.0 4.8.0
Transitive dependencies
Package Constraint Compatible Latest Notes
archive - 3.6.1 4.0.9
characters - 1.4.1 1.4.1
collection - 1.19.1 1.19.1
crypto - 3.0.7 3.0.7
csslib - 1.0.2 1.0.2
html - 0.15.6 0.15.6
material_color_utilities - 0.13.0 0.13.0
meta - 1.17.0 1.18.2
path - 1.9.1 1.9.1
petitparser - 7.0.2 7.0.2
source_span - 1.10.2 1.10.2
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
vector_math - 2.2.0 2.3.0
xml - 6.6.1 7.0.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

flutter pub downgrade failed with:

OUT:
Resolving dependencies...
Downloading packages...
< archive 3.0.0 (was 3.6.1)
+ charcode 1.2.0
< crypto 3.0.0 (was 3.0.7)
< csslib 0.17.0 (was 1.0.2)
< html 0.15.0 (was 0.15.6)
< image 3.0.2 (was 3.3.0)
< path 1.8.0 (was 1.9.1)
< petitparser 4.0.0 (was 7.0.2)
[7 more lines]
ERR:
Exceeded timeout of 0:02:00.000000

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.12, Flutter 3.41.7, Dart 3.11.5.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
159
likes
110
points
5.93k
downloads

Documentation

API reference

Publisher

verified publishertablemi.com

Weekly Downloads

Basic Flutter/Dart classes for ESC/POS printing. Ticket class generates ESC/POS commands that can be sent to a thermal printer.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, gbk_codec, hex, image

More

Packages that depend on esc_pos_utils