flutter_image_compression 2.0.0
flutter_image_compression: ^2.0.0 copied to clipboard
Flutter image compression and resize for Mobile, Desktop and Web. Support format JPG, PNG, WEBP.
We analyzed this package 10 days ago, and awarded it 130 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
Please provide a valid repository URL in pubspec.yaml, such that:
repositorycan be cloned,- a clone of the repository contains a
pubspec.yaml, which:,- contains
name: flutter_image_compression, - contains a
versionproperty, and, - does not contain a
publish_toproperty.
- contains
Could not find any pubspec.yaml in the repository.
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
42 out of 55 API elements (76.4 %) have documentation comments.
Some symbols that are missing documentation: flutter_image_compress, flutter_image_compress.FlutterImageCompress.FlutterImageCompress.new, flutter_image_compress.FlutterImageCompress.showNativeLog, flutter_image_compress.FlutterImageCompress.validator, flutter_image_compression.
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
0/0 points: WASM compatibility
This package is compatible with runtime wasm, and will be rewarded additional 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/flutter_image_compression/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 6 issues. Showing the first 2:
INFO: Unnecessary 'const' keyword.
lib/flutter_image_compress.dart:40:7
╷
40 │ const MethodChannel('flutter_image_compress');
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/flutter_image_compress.dart
INFO: The private field _validator could be 'final'.
lib/flutter_image_compress.dart:42:20
╷
42 │ static Validator _validator = Validator(_channel);
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/flutter_image_compress.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
cross_file |
^0.3.4 |
0.3.4+2 | 0.3.4+2 | |
flutter_image_compress |
^2.3.0 |
2.3.0 | 2.4.0 | |
image_compression |
^1.0.5 |
1.0.5 | 1.0.5 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 | |
web |
^0.5.1 |
0.5.1 | 1.1.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
archive |
- | 4.0.7 | 4.0.7 | |
characters |
- | 1.4.0 | 1.4.1 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
ffi |
- | 2.1.4 | 2.1.4 | |
flutter_image_compress_common |
- | 1.0.6 | 1.0.6 | |
flutter_image_compress_macos |
- | 1.0.3 | 1.0.3 | |
flutter_image_compress_ohos |
- | 0.0.3 | 0.0.3 | |
flutter_image_compress_platform_interface |
- | 1.0.5 | 1.0.5 | |
flutter_image_compress_web |
- | 0.1.4+1 | 0.1.5 | |
image |
- | 4.5.4 | 4.5.4 | |
js |
- | 0.7.2 | 0.7.2 | Discontinued |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.16.0 | 1.17.0 | |
mime |
- | 1.0.6 | 2.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.1 | 7.0.1 | |
posix |
- | 6.0.3 | 6.0.3 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
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.5.1` on web does not support the stable version `1.0.0`.
Try running dart pub upgrade --major-versions web 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.22.24, Flutter 3.35.5, Dart 3.9.2.
Check the analysis log for details.