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 37 hours 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 105 issues. Showing the first 2:
INFO: Don't invoke 'print' in production code.
lib/bitmapimports_web.dart:12:5
╷
12 │ print("We're in Web, nothing to do here!");
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/bitmapimports_web.dart
INFO: Don't invoke 'print' in production code.
lib/bitmapimports_web.dart:19:5
╷
19 │ print("We're in Web, nothing to do here!");
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/bitmapimports_web.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.10.1 | 4.10.1 | |
qrcode_barcode_scanner |
^3.0.3 |
3.0.3 | 4.0.0 | |
sumup |
^0.12.1 |
0.12.1 | 0.14.3 | |
sunmi_printer_plus |
^3.0.1 |
3.0.1 | 4.1.1 | |
sunmi_scanner |
^0.0.6 |
0.0.8 | 0.0.8 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 4.3.0 | 4.3.0 | |
async |
- | 2.13.1 | 2.13.1 | |
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.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
path |
- | 1.9.1 | 1.9.1 | |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 | |
posix |
- | 6.5.2 | 6.5.2 | |
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.4.2 | 2.4.2 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
Found 3 issues. Showing the first 2:
The constraint `^3.0.3` on qrcode_barcode_scanner does not support the stable version `4.0.0`, that was published 5 days ago.
When qrcode_barcode_scanner is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions qrcode_barcode_scanner to update the constraint.
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.
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.19, Flutter 3.47.0, Dart 3.13.0.
Check the analysis log for details.