dio_http_logger 1.0.3 copy "dio_http_logger: ^1.0.3" to clipboard
dio_http_logger: ^1.0.3 copied to clipboard

Dio network logger library for viewing request, response and error logs for any requests

100/ 160
pub points
23
downloads

We analyzed this package 15 days ago, and awarded it 100 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Partially passed report section
Provide documentation
10 / 20trigger folding of the section

Partially passed check 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.

Passed check 10/10 points: Package has an example

Failed report section
Platform support
20 / 20trigger folding of the section

Passed check 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.dart that declares support for platforms: Android, iOS.
Package does not support platform `Linux`.

Because:

  • package:dio_http_logger/dio_logger.dart that declares support for platforms: Android, iOS.
Package does not support platform `macOS`.

Because:

  • package:dio_http_logger/dio_logger.dart that declares support for platforms: Android, iOS.
Package does not support platform `Web`.

Because:

  • package:dio_http_logger/dio_logger.dart that 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.dart that imports:
  • package:dio_http_logger/src/dio_network_logger.dart that imports:
  • package:dio_http_logger/src/utils/local_notification.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart that declares support for platforms: Linux.
Package does not support platform `iOS`.

Because:

  • package:dio_http_logger/dio_logger.dart that imports:
  • package:dio_http_logger/src/dio_network_logger.dart that imports:
  • package:dio_http_logger/src/utils/local_notification.dart that imports:
  • package:flutter_local_notifications/flutter_local_notifications.dart that imports:
  • package:flutter_local_notifications/src/notification_details.dart that imports:
  • package:flutter_local_notifications_linux/flutter_local_notifications_linux.dart that declares support for platforms: Linux.

Failed check 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.

Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 37 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

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

Failed check 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.0 5.9.0
flutter_local_notifications ^17.2.2 17.2.4 19.5.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.11 0.7.11
dio_web_adapter - 2.1.1 2.1.1
ffi - 2.1.4 2.1.4
flutter_local_notifications_linux - 4.0.1 6.0.0
flutter_local_notifications_platform_interface - 7.2.0 9.1.0
http_parser - 4.1.2 4.1.2
material_color_utilities - 0.11.1 0.13.0
meta - 1.17.0 1.17.0
mime - 2.0.0 2.0.0
path - 1.9.1 1.9.1
petitparser - 7.0.1 7.0.1
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
timezone - 0.9.4 0.10.1
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.

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

Failed check 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.3, Flutter 3.38.4, Dart 3.10.3.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
100
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Dio network logger library for viewing request, response and error logs for any requests

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, flutter_local_notifications, plugin_platform_interface

More

Packages that depend on dio_http_logger

Packages that implement dio_http_logger