Skip to main content

smart_assets_plugin 1.0.0 copy "smart_assets_plugin: ^1.0.0" to clipboard
smart_assets_plugin: ^1.0.0 copied to clipboard

智能资源下载插件 - 支持图片压缩、远端下载、智能切换的 Flutter 资源优化方案

45/ 160
pub points
9
downloads

We analyzed this package 7 hours ago, and awarded it 45 pub points (of a possible 160):

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

Failed check 0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 50 to 180 characters to describe the package, what it does, and its target use case.

The package description contains too many non-ASCII characters.

The site uses English as its primary language. The content of the description field in your package's pubspec.yaml should primarily contain characters used in English.

Homepage URL doesn't exist.

At the time of the analysis https://github.com/your-org/smart_assets_plugin was unreachable. Make sure that the website is reachable via HEAD requests.

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

Failed check 0/5 points: Provide a valid CHANGELOG.md

`CHANGELOG.md` contains too many non-ASCII characters.

The site uses English as its primary language. The content of CHANGELOG.md in your package should primarily contain characters used in English.

Failed check 0/10 points: Use an OSI-approved license

No license was recognized.

Consider using an OSI-approved license in the LICENSE file to make it more accessible to the community.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Passed check 10/10 points: 20% or more of the public API has dartdoc comments

295 out of 420 API elements (70.2 %) have documentation comments.

Some symbols that are missing documentation: smart_assets_plugin.AssetInfo.AssetInfo.new, smart_assets_plugin.AssetItem.AssetItem.new, smart_assets_plugin.AssetLoadException.AssetLoadException.new, smart_assets_plugin.AssetLoadException.originalError, smart_assets_plugin.AssetManager.AssetManager.new.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Failed report section
Platform support
0 / 20trigger folding of the section

Failed check 0/20 points: Supports 0 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

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

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

Found 255 issues. Showing the first 2:

ERROR: The type 'DioExceptionType' isn't exhaustively matched by the switch cases since it doesn't match the pattern 'DioExceptionType.transformTimeout'.

lib/src/core/download_service.dart:173:5

    ╷
173 │     switch (e.type) {
    │     ^^^^^^
    ╵

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

ERROR: The type 'DioExceptionType' isn't exhaustively matched by the switch cases since it doesn't match the pattern 'DioExceptionType.transformTimeout'.

lib/src/core/download_service.dart:199:5

    ╷
199 │     switch (e.type) {
    │     ^^^^^^
    ╵

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

Failed report section
Support up-to-date dependencies
30 / 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
archive ^3.6.1 3.6.1 4.5.2
crypto ^3.0.3 3.0.8 3.0.8
dio ^5.4.0 5.11.1 5.11.1
glob ^2.1.2 2.2.0 2.2.0
image ^4.0.0 4.3.0 4.12.0
path ^1.9.0 1.9.1 1.9.1
path_provider ^2.1.0 2.1.6 2.1.6
shared_preferences ^2.2.0 2.5.6 2.5.6
yaml ^3.1.2 3.1.4 3.1.4
Transitive dependencies
Package Constraint Compatible Latest Notes
args - 2.7.0 2.7.0
async - 2.13.1 2.13.1
characters - 1.4.1 1.4.1
code_assets - 2.1.0 2.1.0
collection - 1.19.1 1.19.1
dio_web_adapter - 2.2.2 2.2.2
ffi - 2.2.0 2.2.0
file - 7.0.1 7.0.1
hooks - 2.2.0 2.2.0
http_parser - 4.1.2 4.1.2
jni - 1.1.1 1.1.1
jni_flutter - 1.0.4+1 1.0.4+1
jni_util - 1.0.0 1.0.0
logging - 1.3.0 1.3.0
material_color_utilities - 0.13.0 0.13.1
meta - 1.19.0 1.19.0
mime - 2.1.0 2.1.0
objective_c - 9.6.2 9.6.2
package_config - 3.0.0 3.0.0
path_provider_android - 2.3.1 2.3.1
path_provider_foundation - 2.6.0 2.6.0
path_provider_linux - 2.2.2 2.2.2
path_provider_platform_interface - 2.1.3 2.1.3
path_provider_windows - 2.3.0 2.3.0
petitparser - 7.1.0 7.1.0
platform - 3.2.0 3.2.0
plugin_platform_interface - 2.1.8 2.1.8
pub_semver - 2.2.1 2.2.1
record_use - 1.1.1 1.1.1
shared_preferences_android - 2.5.4 2.5.4
shared_preferences_foundation - 2.6.1 2.6.1
shared_preferences_linux - 2.4.1 2.4.1
shared_preferences_platform_interface - 2.4.2 2.4.2
shared_preferences_web - 2.4.3 2.4.3
shared_preferences_windows - 2.4.1 2.4.1
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.4 2.4.4
web - 1.1.2 1.1.2
xdg_directories - 1.1.0 1.1.0
xml - 6.6.1 7.1.0

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

The constraint `^3.6.1` on archive does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions archive to update the constraint.

Passed check 10/10 points: Package supports latest stable Dart and Flutter SDKs

Passed check 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.7, Dart 3.13.5.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
45
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

智能资源下载插件 - 支持图片压缩、远端下载、智能切换的 Flutter 资源优化方案

Homepage

License

unknown (license)

Dependencies

archive, crypto, dio, flutter, glob, image, path, path_provider, shared_preferences, yaml

More

Packages that depend on smart_assets_plugin