cache_service 1.0.0 cache_service: ^1.0.0 copied to clipboard
Cached Services is a highly efficient Flutter package that provides easy-to-use widgets for caching and displaying images and PDFs, with built-in support for advanced caching mechanisms like LRU Cache [...]
We analyzed this package 10 hours ago, and awarded it 140 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
The package description is too long.
Search engines display only the first part of the description. Try to keep the value of the description
field in your package's pubspec.yaml
file between 60 and 180 characters.
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
55 out of 74 API elements (74.3 %) have documentation comments.
Some symbols that are missing documentation: cache_service.Awesome.isAwesome
, cache_service.CacheConfig
, cache_service.CacheConfig.CacheConfig
, cache_service.CacheConfig.cleanupPeriod
, cache_service.CacheConfig.copyWith
.
10/10 points: Package has an example
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ macOS
-
✓ Web
These platforms are not supported:
Package does not support platform `Linux`.
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that declares support for platforms:Android
,iOS
,Windows
,macOS
,Web
.
These issues are present but do not affect the score, because they may not originate in your package:
Package does not support platform `Android`.
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/pdfviewer.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package does not support platform `iOS`.
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/pdfviewer.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package does not support platform `macOS`.
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/pdfviewer.dart
that imports:package:device_info_plus/device_info_plus.dart
that imports:package:device_info_plus/src/device_info_plus_windows.dart
that imports:package:win32_registry/win32_registry.dart
that declares support for platforms:Windows
.
Package not compatible with platform Web
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/text_extraction/text_extraction.dart
that imports:dart:isolate
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:cache_service/cache_service.dart
that imports:package:cache_service/src/services/cache_services/widgets/pdf/cache_pdf_provider.dart
that imports:package:syncfusion_flutter_pdfviewer/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/pdfviewer.dart
that imports:package:syncfusion_flutter_pdfviewer/src/text_extraction/text_extraction.dart
that imports:dart:isolate
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 4 issues. Showing the first 2:
INFO: The variable name '_CacheItem' isn't a lowerCamelCase identifier.
lib/src/services/cache_services/cache_service.dart:664:13
╷
664 │ final _CacheItem = _cacheBox.get(entry.key);
│ ^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/services/cache_services/cache_service.dart
INFO: Statements in an if should be enclosed in a block.
lib/src/services/cache_services/data_structure/queue.dart:86:7
╷
86 │ return; // Parent is smaller or equal, heap property is restored.
│ ^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/services/cache_services/data_structure/queue.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
crypto |
^3.0.3 |
3.0.5 | 3.0.5 |
dio |
^5.5.0+1 |
5.7.0 | 5.7.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
hive_flutter |
^1.1.0 |
1.1.0 | 1.1.0 |
logger |
^2.4.0 |
2.4.0 | 2.4.0 |
provider |
^6.1.2 |
6.1.2 | 6.1.2 |
shimmer |
^3.0.0 |
3.0.0 | 3.0.0 |
syncfusion_flutter_pdfviewer |
^26.2.8 |
26.2.14 | 27.1.48 |
Transitive dependencies
Package | Constraint | Compatible | Latest |
---|---|---|---|
async |
- | 2.11.0 | 2.11.0 |
characters |
- | 1.3.0 | 1.3.0 |
clock |
- | 1.1.1 | 1.1.1 |
collection |
- | 1.18.0 | 1.19.0 |
convert |
- | 3.1.1 | 3.1.1 |
device_info_plus |
- | 10.1.2 | 10.1.2 |
device_info_plus_platform_interface |
- | 7.0.1 | 7.0.1 |
dio_web_adapter |
- | 2.0.0 | 2.0.0 |
ffi |
- | 2.1.3 | 2.1.3 |
file |
- | 7.0.0 | 7.0.0 |
fixnum |
- | 1.1.0 | 1.1.0 |
flutter_web_plugins |
- | 0.0.0 | 0.0.0 |
hive |
- | 2.2.3 | 2.2.3 |
http |
- | 1.2.2 | 1.2.2 |
http_parser |
- | 4.0.2 | 4.1.0 |
intl |
- | 0.19.0 | 0.19.0 |
js |
- | 0.7.1 | 0.7.1 |
material_color_utilities |
- | 0.11.1 | 0.12.0 |
meta |
- | 1.15.0 | 1.15.0 |
nested |
- | 1.0.0 | 1.0.0 |
path |
- | 1.9.0 | 1.9.0 |
path_provider |
- | 2.1.4 | 2.1.4 |
path_provider_android |
- | 2.2.10 | 2.2.10 |
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.5 | 3.1.5 |
plugin_platform_interface |
- | 2.1.8 | 2.1.8 |
sky_engine |
- | 0.0.99 | 0.0.99 |
source_span |
- | 1.10.0 | 1.10.0 |
sprintf |
- | 7.0.0 | 7.0.0 |
string_scanner |
- | 1.3.0 | 1.3.0 |
syncfusion_flutter_core |
- | 26.2.14 | 27.1.48 |
syncfusion_flutter_pdf |
- | 26.2.14 | 27.1.48 |
syncfusion_flutter_signaturepad |
- | 26.2.14 | 27.1.48 |
syncfusion_pdfviewer_macos |
- | 26.2.14 | 27.1.48 |
syncfusion_pdfviewer_platform_interface |
- | 26.2.14 | 27.1.48 |
syncfusion_pdfviewer_web |
- | 26.2.14 | 27.1.48 |
syncfusion_pdfviewer_windows |
- | 26.2.14 | 27.1.48 |
term_glyph |
- | 1.2.1 | 1.2.1 |
typed_data |
- | 1.3.2 | 1.3.2 |
url_launcher |
- | 6.3.0 | 6.3.0 |
url_launcher_android |
- | 6.3.10 | 6.3.10 |
url_launcher_ios |
- | 6.3.1 | 6.3.1 |
url_launcher_linux |
- | 3.2.0 | 3.2.0 |
url_launcher_macos |
- | 3.2.0 | 3.2.0 |
url_launcher_platform_interface |
- | 2.3.2 | 2.3.2 |
url_launcher_web |
- | 2.3.3 | 2.3.3 |
url_launcher_windows |
- | 3.1.2 | 3.1.2 |
uuid |
- | 4.5.0 | 4.5.0 |
vector_math |
- | 2.1.4 | 2.1.4 |
web |
- | 1.0.0 | 1.0.0 |
win32 |
- | 5.5.4 | 5.5.4 |
win32_registry |
- | 1.1.5 | 1.1.5 |
xdg_directories |
- | 1.0.4 | 1.0.4 |
xml |
- | 6.5.0 | 6.5.0 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^26.2.8` on syncfusion_flutter_pdfviewer does not support the stable version `27.1.48`, that was published 0 days ago.
When syncfusion_flutter_pdfviewer is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions syncfusion_flutter_pdfviewer
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.12
, Flutter 3.24.2
, Dart 3.5.2
.
Check the analysis log for details.