thermal_printer_flutter 0.0.1+4
thermal_printer_flutter: ^0.0.1+4 copied to clipboard
A Flutter plugin for thermal printing supporting Bluetooth, USB, and Network printers across Android, iOS, macOS, Windows, Linux, and Web platforms. Easy to use and integrates with esc_pos_utils for g [...]
We analyzed this package 2 hours ago, and awarded it 120 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description
field in your package's pubspec.yaml
file between 60 and 180 characters.
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: Apache-2.0
.
10/10 points: 20% or more of the public API has dartdoc comments
71 out of 220 API elements (32.3 %) have documentation comments.
Some symbols that are missing documentation: thermal_printer_flutter
, thermal_printer_flutter.Barcode
, thermal_printer_flutter.Barcode.data
, thermal_printer_flutter.Barcode.type
, thermal_printer_flutter.BarcodeFont
.
10/10 points: Package has an example
20/20 points: Supports 6 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
-
✓ Web
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that declares support for platforms:Windows
.
Package does not support platform `Windows`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/mobile_ble.dart
that imports:package:flutter_blue_plus/flutter_blue_plus.dart
that declares support for platforms:Android
,iOS
,Linux
,macOS
,Web
.
Package does not support platform `Linux`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that declares support for platforms:Windows
.
Package does not support platform `Web`.
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that declares support for platforms:Windows
.
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:thermal_printer_flutter/thermal_printer_flutter.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_platform_interface.dart
that imports:package:thermal_printer_flutter/thermal_printer_flutter_method_channel.dart
that imports:package:thermal_printer_flutter/src/win_ble.dart
that imports:package:win_ble/win_file.dart
that imports:package:path_provider/path_provider.dart
that imports:package:path_provider_platform_interface/path_provider_platform_interface.dart
that imports:package:path_provider_platform_interface/src/method_channel_path_provider.dart
that imports:package:platform/platform.dart
that imports:package:platform/src/interface/local_platform.dart
that imports:dart:io
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.
0/0 points: Swift Package Manager support
Package does not support the Swift Package Manager on macOS
It does not contain macos/thermal_printer_flutter/Package.swift
.
This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.
See https://docs.flutter.dev/to/spm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 11 issues. Showing the first 2:
INFO: 'textScaleFactor' is deprecated and shouldn't be used. Use textScaler instead. Use of textScaleFactor was deprecated in preparation for the upcoming nonlinear text scaling support. This feature was deprecated after v3.12.0-2.0.pre.
lib/src/services/screent_shot.dart:36:21
╷
36 │ textScaleFactor: 1.3, // Reduzido ligeiramente
│ ^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/services/screent_shot.dart
INFO: The import of 'package:thermal_printer_flutter/src/models/printer.dart' is unnecessary because all of the used elements are also provided by the import of 'package:thermal_printer_flutter/thermal_printer_flutter.dart'.
lib/thermal_printer_flutter_platform_interface.dart:2:8
╷
2 │ import 'package:thermal_printer_flutter/src/models/printer.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/thermal_printer_flutter_platform_interface.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
esc_pos_utils_plus |
^2.0.4 |
2.0.4 | 2.0.4 | |
flutter_blue_plus |
^1.31.3 |
1.35.5 | 1.35.5 | |
image |
any |
4.5.4 | 4.5.4 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 | |
web |
any |
1.1.1 | 1.1.1 | |
win_ble |
^1.1.1 |
1.1.1 | 1.1.1 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
archive |
- | 4.0.7 | 4.0.7 | |
args |
- | 2.7.0 | 2.7.0 | |
bluez |
- | 0.8.3 | 0.8.3 | |
characters |
- | 1.4.0 | 1.4.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
csslib |
- | 1.0.2 | 1.0.2 | |
dbus |
- | 0.7.11 | 0.7.11 | |
ffi |
- | 2.1.4 | 2.1.4 | |
flutter_blue_plus_android |
- | 4.0.5 | 4.0.5 | |
flutter_blue_plus_darwin |
- | 4.0.1 | 4.0.1 | |
flutter_blue_plus_linux |
- | 3.0.2 | 3.0.2 | |
flutter_blue_plus_platform_interface |
- | 4.0.2 | 4.0.2 | |
flutter_blue_plus_web |
- | 3.0.1 | 3.0.1 | |
html |
- | 0.15.6 | 0.15.6 | |
material_color_utilities |
- | 0.11.1 | 0.12.0 | |
meta |
- | 1.16.0 | 1.16.0 | |
path |
- | 1.9.1 | 1.9.1 | |
path_provider |
- | 2.1.5 | 2.1.5 | |
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 | 6.1.0 | |
platform |
- | 3.1.6 | 3.1.6 | |
posix |
- | 6.0.2 | 6.0.2 | |
rxdart |
- | 0.28.0 | 0.28.0 | |
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.1.5 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.5.0 | 6.5.0 |
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
0/20 points: Compatible with dependency constraint lower bounds
downgrade analysis failed failed with 1 error:
INVOCATION_OF_NON_FUNCTION_EXPRESSION
-lib/src/mobile_ble.dart:207:19
- The expression doesn't evaluate to a function, so it can't be invoked.
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.29.3
, Dart 3.7.2
.
Check the analysis log for details.