optimized_cached_image 3.0.1 copy "optimized_cached_image: ^3.0.1" to clipboard
optimized_cached_image: ^3.0.1 copied to clipboard

A library for loading images from network, resizing as per container size and caching while being memory sensitive.

115
likes
80/ 160
pub points
88%
popularity

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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.

OK
Provide documentation
20 / 20trigger folding of the section

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

59 out of 66 API elements (89.4 %) have documentation comments.

Some symbols that are missing documentation: optimized_cached_image.Logger, optimized_cached_image.Logger.Logger, optimized_cached_image.Logger.TAG, optimized_cached_image.Logger.enableLogging, optimized_cached_image.OptimizedCacheImage.imageRenderMethodForWeb.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Android

  • ✓ iOS

These platforms are not supported:

Package does not support platform `Windows`.

Because:

  • package:optimized_cached_image/optimized_cached_image.dart that imports:
  • package:optimized_cached_image/src/image_provider/optimized_cached_image_provider.dart that imports:
  • package:optimized_cached_image/src/image_provider/_image_provider_io.dart that imports:
  • package:flutter_cache_manager/flutter_cache_manager.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_info_repositories.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_object_provider.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `Linux`.

Because:

  • package:optimized_cached_image/optimized_cached_image.dart that imports:
  • package:optimized_cached_image/src/image_provider/optimized_cached_image_provider.dart that imports:
  • package:optimized_cached_image/src/image_provider/_image_provider_io.dart that imports:
  • package:flutter_cache_manager/flutter_cache_manager.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_info_repositories.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_object_provider.dart that imports:
  • package:sqflite/sqflite.dart that declares support for platforms: Android, iOS, macOS.
Package does not support platform `macOS`.

Because:

  • package:optimized_cached_image/optimized_cached_image.dart that imports:
  • package:optimized_cached_image/src/image_provider/optimized_cached_image_provider.dart that imports:
  • package:optimized_cached_image/src/image_provider/_image_provider_io.dart that imports:
  • package:optimized_cached_image/src/cache/image_cache_manager.dart that imports:
  • package:optimized_cached_image/src/transformer/image_transformer.dart that imports:
  • package:optimized_cached_image/src/transformer/scale_info.dart that imports:
  • package:flutter_image_compress/flutter_image_compress.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:optimized_cached_image/optimized_cached_image.dart that imports:
  • package:optimized_cached_image/src/image_provider/optimized_cached_image_provider.dart that imports:
  • package:optimized_cached_image/src/image_provider/_image_provider_web.dart that imports:
  • package:flutter_cache_manager/flutter_cache_manager.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/cache_info_repositories.dart that imports:
  • package:flutter_cache_manager/src/storage/cache_info_repositories/json_cache_info_repository.dart that imports:
  • package:path_provider/path_provider.dart that declares support for platforms: Android, iOS, Windows, Linux, macOS.

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

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

Found 18 issues. Showing the first 2:

ERROR: Undefined class 'DecoderCallback'.

lib/src/image_provider/_image_provider_io.dart:72:55

   ╷
72 │       image_provider.OptimizedCacheImageProvider key, DecoderCallback decode) {
   │                                                       ^^^^^^^^^^^^^^^
   ╵

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

ERROR: Undefined class 'DecoderCallback'.

lib/src/image_provider/_image_provider_io.dart:91:5

   ╷
91 │     DecoderCallback decode,
   │     ^^^^^^^^^^^^^^^
   ╵

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

failed
Support up-to-date dependencies
10 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
file ^6.1.0 6.1.4 7.0.1
flutter flutter 0.0.0 0.0.0
flutter_cache_manager ^3.0.0 3.3.1 3.4.1
flutter_image_compress ^1.1.0 1.1.3 2.3.0
http ^0.13.1 0.13.6 1.2.2
image ^3.0.2 3.3.0 4.3.0
octo_image ^1.0.0 1.0.2 2.1.0
path ^1.8.0 1.9.1 1.9.1
path_provider ^2.0.1 2.1.5 2.1.5
pedantic ^1.11.0 1.11.1 1.11.1
sprintf ^6.0.0 6.0.2 7.0.0
uuid ^3.0.3 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest
archive - 3.6.1 3.6.1
async - 2.12.0 2.12.0
characters - 1.3.0 1.3.1
clock - 1.1.2 1.1.2
collection - 1.18.0 1.19.1
crypto - 3.0.6 3.0.6
ffi - 2.1.3 2.1.3
flutter_blurhash - 0.7.0 0.8.2
http_parser - 4.0.2 4.1.1
material_color_utilities - 0.11.1 0.12.0
meta - 1.15.0 1.16.0
path_provider_android - 2.2.12 2.2.12
path_provider_foundation - 2.4.0 2.4.0
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.0.2 6.0.2
platform - 3.1.6 3.1.6
plugin_platform_interface - 2.1.8 2.1.8
rxdart - 0.27.7 0.28.0
sky_engine - 0.0.99 0.0.99
source_span - 1.10.0 1.10.0
sqflite - 2.4.0 2.4.0
sqflite_android - 2.4.0 2.4.0
sqflite_common - 2.5.4+5 2.5.4+5
sqflite_darwin - 2.4.1-1 2.4.1-1
sqflite_platform_interface - 2.4.0 2.4.0
string_scanner - 1.4.0 1.4.0
synchronized - 3.3.0+3 3.3.0+3
term_glyph - 1.2.1 1.2.1
typed_data - 1.4.0 1.4.0
vector_math - 2.1.4 2.1.4
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.

Found 7 issues. Showing the first 2:

The constraint `^6.1.0` on file does not support the stable version `7.0.0`.

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

The constraint `^1.1.0` on flutter_image_compress does not support the stable version `2.0.0`.

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

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 7 errors:

  • UNDEFINED_CLASS - lib/src/image_provider/_image_provider_io.dart:72:55 - Undefined class 'DecoderCallback'.
  • UNDEFINED_CLASS - lib/src/image_provider/_image_provider_io.dart:91:5 - Undefined class 'DecoderCallback'.
  • UNDEFINED_CLASS - lib/src/image_provider/_image_provider_web.dart:68:55 - Undefined class 'DecoderCallback'.

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.13, Flutter 3.24.3, Dart 3.5.3.

Check the analysis log for details.

115
likes
80
pub points
88%
popularity

Publisher

verified publisheranvith.dev

A library for loading images from network, resizing as per container size and caching while being memory sensitive.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

file, flutter, flutter_cache_manager, flutter_image_compress, http, image, octo_image, path, path_provider, pedantic, sprintf, uuid

More

Packages that depend on optimized_cached_image