dio_api_client 5.3.3
dio_api_client: ^5.3.3 copied to clipboard
API Client for flutter projects based on dio package. It supports caching, logging, authentication, error handling, etc. It is easy to use and extend.
We analyzed this package 9 hours ago, and awarded it 140 pub points (of a possible 160):
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
.
10/10 points: 20% or more of the public API has dartdoc comments
369 out of 549 API elements (67.2 %) have documentation comments.
Some symbols that are missing documentation: dio_api_client
, dio_api_client.ApiAuthInterceptor.authInterceptor
, dio_api_client.ApiAuthInterceptor.refreshToken
, dio_api_client.ApiAuthInterceptor.token
, dio_api_client.ApiAuthInterceptor.user
.
10/10 points: Package has an example and has no issues with screenshots
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:dio_api_client/dio_api_client.dart
that imports:package:dio_api_client/src/api_client/interceptor/response.dart
that imports:package:universal_io/io.dart
that imports:package:universal_io/src/_exports_in_browser.dart
that imports:package:universal_io/src/internet_address.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:dio_api_client/dio_api_client.dart
that imports:package:dio_api_client/src/api_client/interceptor/response.dart
that imports:package:universal_io/io.dart
that imports:package:universal_io/src/_exports_in_vm.dart
that imports:package:universal_io/src/new_universal_http_client.dart
that imports:package:universal_io/src/_helpers.dart
that imports:package:universal_io/src/_helpers_impl_elsewhere.dart
that imports:dart:io
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 5 issues. Showing the first 2:
INFO: The import of 'package:dio_cache_interceptor/dio_cache_interceptor.dart' is unnecessary because all of the used elements are also provided by the import of '../../../dio_api_client.dart'.
lib/src/api_client/interceptor/cache.dart:1:8
╷
1 │ import 'package:dio_cache_interceptor/dio_cache_interceptor.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/api_client/interceptor/cache.dart
INFO: The import of 'package:dio_cache_interceptor_hive_store/dio_cache_interceptor_hive_store.dart' is unnecessary because all of the used elements are also provided by the import of '../../../dio_api_client.dart'.
lib/src/api_client/interceptor/cache.dart:2:8
╷
2 │ import 'package:dio_cache_interceptor_hive_store/dio_cache_interceptor_hive_store.dart';
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/api_client/interceptor/cache.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
dio |
^5.3.3 |
5.8.0+1 | 5.8.0+1 | |
dio_cache_interceptor |
^3.4.4 |
3.5.1 | 4.0.3 | |
dio_cache_interceptor_hive_store |
^3.2.1 |
3.2.2 | 4.0.0 | Discontinued |
pretty_dio_logger |
^1.3.1 |
1.4.0 | 1.4.0 | |
universal_io |
^2.2.2 |
2.2.2 | 2.2.2 |
Transitive dependencies
Package | Constraint | Compatible | Latest | Notes |
---|---|---|---|---|
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.0 | |
collection |
- | 1.19.1 | 1.19.1 | |
crypto |
- | 3.0.6 | 3.0.6 | |
dio_web_adapter |
- | 2.1.1 | 2.1.1 | |
fixnum |
- | 1.1.1 | 1.1.1 | |
hive |
- | 2.2.3 | 2.2.3 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.11.1 | 0.12.0 | |
meta |
- | 1.16.0 | 1.16.0 | |
path |
- | 1.9.1 | 1.9.1 | |
source_span |
- | 1.10.1 | 1.10.1 | |
sprintf |
- | 7.0.0 | 7.0.0 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
uuid |
- | 4.5.1 | 4.5.1 | |
vector_math |
- | 2.1.4 | 2.1.5 | |
web |
- | 1.1.1 | 1.1.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 3 issues. Showing the first 2:
The constraint `^3.4.4` on dio_cache_interceptor does not support the stable version `4.0.0`, that was published 26 days ago.
When dio_cache_interceptor is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions dio_cache_interceptor
to update the constraint.
The constraint `^3.2.1` on dio_cache_interceptor_hive_store does not support the stable version `4.0.0`.
Try running dart pub upgrade --major-versions dio_cache_interceptor_hive_store
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.20
, Flutter 3.29.2
, Dart 3.7.2
.
Check the analysis log for details.