dio_http_cache 0.3.0
dio_http_cache: ^0.3.0 copied to clipboard

http cache lib for Flutter dio like RxCache.It use sqflite as disk cache,and google/quiver-dart/LRU strategy as memory cache.

130
likes
90/ 130
pub points
96%
popularity

We analyzed this package on Oct 25, 2021, and awarded it 90 pub points (of a possible 130):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/lib/main.dart

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

  • 9 out of 66 API elements (13.6 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Support multiple platforms
10 / 20

10/20 points: Supports 2 of 3 possible platforms (iOS, Android, Web)

Found 5 issues. Showing the first 2:

Consider supporting multiple platforms:

Package does not support Flutter platform `Web`.

Because:

  • package:dio_http_cache/dio_http_cache.dart that imports:
  • package:dio_http_cache/src/manager_dio.dart that imports:
  • package:dio_http_cache/src/core/manager.dart that imports:
  • package:sqflite/utils/utils.dart that declares support for platforms: Android, iOS, macOS.
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

lib/src/core/manager.dart doesn't match the Dart formatter.

To format your files run: flutter format .

lib/src/manager_dio.dart doesn't match the Dart formatter.

To format your files run: flutter format .

Support up-to-date dependencies
10 / 20

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

PackageConstraintCompatibleLatest
crypto^3.0.13.0.13.0.1
dio^4.0.04.0.14.0.1
flutterflutter0.0.00.0.0
json_annotation^4.0.14.1.04.3.0
json_serializable^4.1.44.1.46.0.1
path^1.8.01.8.01.8.0
quiver^3.0.13.0.1+13.0.1+1
sqflite^2.0.0+32.0.0+42.0.0+4
Transitive dependencies
PackageConstraintCompatibleLatest
_fe_analyzer_shared-22.0.030.0.0
analyzer-1.7.22.7.0
args-2.3.02.3.0
async-2.8.22.8.2
build-2.1.12.1.1
build_config-1.0.01.0.0
characters-1.1.01.2.0
charcode-1.3.11.3.1
checked_yaml-2.0.12.0.1
cli_util-0.3.50.3.5
collection-1.15.01.15.0
convert-3.0.13.0.1
dart_style-2.1.12.2.0
file-6.1.26.1.2
glob-2.0.22.0.2
http_parser-4.0.04.0.0
logging-1.0.21.0.2
matcher-0.12.110.12.11
meta-1.7.01.7.0
package_config-2.0.22.0.2
pedantic-1.11.11.11.1
pub_semver-2.1.02.1.0
pubspec_parse-1.1.01.1.0
sky_engine-0.0.990.0.99
source_gen-1.0.31.1.1
source_span-1.8.11.8.1
sqflite_common-2.0.1+12.0.1+1
stack_trace-1.10.01.10.0
string_scanner-1.1.01.1.0
synchronized-3.0.03.0.0
term_glyph-1.2.01.2.0
typed_data-1.3.01.3.0
vector_math-2.1.02.1.1
watcher-1.0.11.0.1
yaml-3.1.03.1.0

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

The constraint `^4.1.4` on json_serializable does not support the stable version `5.0.0`.

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

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

Support sound null safety
20 / 20

20/20 points: Package and dependencies are fully migrated to null safety!

Analysed with Pana 0.21.3, Flutter 2.5.2, Dart 2.14.3.

130
likes
90
pub points
96%
popularity

http cache lib for Flutter dio like RxCache.It use sqflite as disk cache,and google/quiver-dart/LRU strategy as memory cache.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

crypto, dio, flutter, json_annotation, json_serializable, path, quiver, sqflite

More

Packages that depend on dio_http_cache