dio_http_logger 1.0.3
dio_http_logger: ^1.0.3 copied to clipboard
Dio network logger library for viewing request, response and error logs for any requests
We analyzed this package 2 days ago, and awarded it 100 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.
0/10 points: 20% or more of the public API has dartdoc comments
0 out of 11 API elements (0.0 %) 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.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: dio_http_logger, dio_http_logger.DioNetworkLogger, dio_http_logger.DioNetworkLogger.context, dio_http_logger.DioNetworkLogger.deleteAllRequests, dio_http_logger.DioNetworkLogger.dioNetworkInterceptor.
10/10 points: Package has an example
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:dio_http_logger/dio_logger.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Linux`.
Because:
package:dio_http_logger/dio_logger.dartthat declares support for platforms:Android,iOS.
Package does not support platform `macOS`.
Because:
package:dio_http_logger/dio_logger.dartthat declares support for platforms:Android,iOS.
Package does not support platform `Web`.
Because:
package:dio_http_logger/dio_logger.dartthat declares support for platforms:Android,iOS.
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:dio_http_logger/dio_logger.dartthat imports:package:dio_http_logger/src/dio_network_logger.dartthat imports:package:dio_http_logger/src/utils/local_notification.dartthat imports:package:flutter_local_notifications/flutter_local_notifications.dartthat imports:package:flutter_local_notifications/src/notification_details.dartthat imports:package:flutter_local_notifications_linux/flutter_local_notifications_linux.dartthat declares support for platforms:Linux.
Package does not support platform `iOS`.
Because:
package:dio_http_logger/dio_logger.dartthat imports:package:dio_http_logger/src/dio_network_logger.dartthat imports:package:dio_http_logger/src/utils/local_notification.dartthat imports:package:flutter_local_notifications/flutter_local_notifications.dartthat imports:package:flutter_local_notifications/src/notification_details.dartthat imports:package:flutter_local_notifications_linux/flutter_local_notifications_linux.dartthat declares support for platforms:Linux.
0/0 points: Swift Package Manager support
Package does not support the Swift Package Manager on iOS
It does not contain ios/dio_http_logger/Package.swift.
This package for iOS or macOS does not support the Swift Package Manager. It will not receive full points in a future version of the scoring model.
See https://docs.flutter.dev/to/spm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 9 issues. Showing the first 2:
WARNING: Unused import: '../dio_logger.dart'.
lib/src/dio_network_logger.dart:8:8
╷
8 │ import '../dio_logger.dart';
│ ^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/dio_network_logger.dart
WARNING: The left operand can't be null, so the right operand is never executed.
lib/src/screen/network_request_details.dart:132:58
╷
132 │ Text(encoder.convert(entry.requestBody??{})??'- -'),
│ ^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/screen/network_request_details.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
dio |
>=4.0.0 <6.0.0 |
5.9.1 | 5.9.1 | |
flutter_local_notifications |
^17.2.2 |
17.2.4 | 20.1.0 | |
plugin_platform_interface |
^2.0.2 |
2.1.8 | 2.1.8 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
args |
- | 2.7.0 | 2.7.0 | |
async |
- | 2.13.0 | 2.13.0 | |
characters |
- | 1.4.0 | 1.4.1 | |
clock |
- | 1.1.2 | 1.1.2 | |
collection |
- | 1.19.1 | 1.19.1 | |
dbus |
- | 0.7.12 | 0.7.12 | |
dio_web_adapter |
- | 2.1.1 | 2.1.1 | |
ffi |
- | 2.2.0 | 2.2.0 | |
flutter_local_notifications_linux |
- | 4.0.1 | 7.0.0 | |
flutter_local_notifications_platform_interface |
- | 7.2.0 | 10.0.0 | |
http_parser |
- | 4.1.2 | 4.1.2 | |
material_color_utilities |
- | 0.11.1 | 0.13.0 | |
meta |
- | 1.17.0 | 1.18.1 | |
mime |
- | 2.0.0 | 2.0.0 | |
path |
- | 1.9.1 | 1.9.1 | |
petitparser |
- | 7.0.2 | 7.0.2 | |
source_span |
- | 1.10.2 | 1.10.2 | |
string_scanner |
- | 1.4.1 | 1.4.1 | |
term_glyph |
- | 1.2.2 | 1.2.2 | |
timezone |
- | 0.9.4 | 0.11.0 | |
typed_data |
- | 1.4.0 | 1.4.0 | |
vector_math |
- | 2.2.0 | 2.2.0 | |
web |
- | 1.1.1 | 1.1.1 | |
xdg_directories |
- | 1.1.0 | 1.1.0 | |
xml |
- | 6.6.1 | 6.6.1 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^17.2.2` on flutter_local_notifications does not support the stable version `18.0.0`.
Try running dart pub upgrade --major-versions flutter_local_notifications 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/dio_network_logger.dart:99:24- Undefined class 'DioException'.UNDEFINED_CLASS-lib/src/models/network_model.dart:19:3- Undefined class 'DioException'.UNDEFINED_CLASS-lib/src/models/network_model.dart:100:3- Undefined class 'DioException'.
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.23.9, Flutter 3.38.9, Dart 3.10.8.
Check the analysis log for details.