sunmiconditionalimports 0.2.5
sunmiconditionalimports: ^0.2.5 copied to clipboard
A wrapper for the sunmi_printer_plus, sunmi_scanner, image, and sumup packages to use them conditionally based on the platform.
We analyzed this package 2 days ago, and awarded it 130 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
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: MIT.
10/10 points: 20% or more of the public API has dartdoc comments
68 out of 202 API elements (33.7 %) have documentation comments.
Some symbols that are missing documentation: bitmapimports_android, bitmapimports_android.Bitmap.Bitmap.new, bitmapimports_exports, bitmapimports_web, bitmapimports_web.Bitmap.Bitmap.new.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
20/20 points: Supports 2 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ Web
These platforms are not supported:
Package does not support platform `iOS`.
Because:
package:sunmiconditionalimports/sunmiconditionalimports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_exports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_android.dartthat imports:package:qrcode_barcode_scanner/qrcode_barcode_scanner.dartthat declares support for platforms:Android.
Package does not support platform `Windows`.
Because:
package:sunmiconditionalimports/sunmiconditionalimports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_exports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_android.dartthat imports:package:qrcode_barcode_scanner/qrcode_barcode_scanner.dartthat declares support for platforms:Android.
Package does not support platform `Linux`.
Because:
package:sunmiconditionalimports/sunmiconditionalimports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_exports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_android.dartthat imports:package:qrcode_barcode_scanner/qrcode_barcode_scanner.dartthat declares support for platforms:Android.
Package does not support platform `macOS`.
Because:
package:sunmiconditionalimports/sunmiconditionalimports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_exports.dartthat imports:package:sunmiconditionalimports/qrcodescannerimports_android.dartthat imports:package:qrcode_barcode_scanner/qrcode_barcode_scanner.dartthat declares support for platforms:Android.
WASM-ready: This package is compatible with runtime wasm. See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 54 issues. Showing the first 2:
INFO: Missing type annotation.
lib/sunmiprinterimports_android.dart:18:10
╷
18 │ static startTransactionPrint() {
│ ^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/sunmiprinterimports_android.dart
INFO: Missing type annotation.
lib/sunmiprinterimports_android.dart:26:10
╷
26 │ static setAlignment(Object alignment) {
│ ^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/sunmiprinterimports_android.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
http |
^1.1.0 |
1.6.0 | 1.6.0 | |
image |
^4.2.0 |
4.8.0 | 4.8.0 | |
qrcode_barcode_scanner |
^3.0.3 |
3.0.3 | 3.0.3 | |
sumup |
^0.12.1 |
0.12.1 | 0.13.1 | |
sunmi_printer_plus |
^3.0.1 |
3.0.1 | 4.1.1 | |
sunmi_scanner |
^0.0.6 |
0.0.6 | 0.0.6 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 4.0.9 | 4.0.9 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.1 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
ffi |
- | 2.2.0 | 2.2.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.13.0 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.1 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.2 | 7.0.2 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
posix |
- | 6.5.0 | 6.5.0 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.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 | |
web |
- | 1.1.1 | 1.1.1 | |
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.12.1` on sumup does not support the stable version `0.13.0`.
Try running dart pub upgrade --major-versions sumup to update the constraint.
The constraint `^3.0.1` on sunmi_printer_plus does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions sunmi_printer_plus to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.10, Flutter 3.41.4, Dart 3.11.1.
Check the analysis log for details.