Skip to content
pubscout

awesome_dio_interceptor

1.3.0, released 2 years ago by devmuaz.com

A simple Dio log interceptor with coloring features and JSON formatting.

WASM-ready
$ flutter pub add awesome_dio_interceptor
Source repository

What it does

It acts as a Dio interceptor to log HTTP requests and responses in a readable, colorful, and formatted manner. It supports JSON formatting, minimized outputs, and pretty FormData support for fields and files.

AI-written summary of version 1.3.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want readable, color-coded HTTP request and response logs in your Dio-based app
  • You need to log FormData fields and files nicely during development

Skip it when

  • You do not use Dio for networking
  • You require a heavy-weight network inspector UI tool rather than console logging

Strengths

  • Provides colored and JSON-formatted output for better readability
  • Supports pretty printing of FormData fields and files
  • Allows minimizing header and timeout logs to reduce clutter

Weaknesses

  • Limited to console logging without an in-app visual inspector GUI

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2
dio.interceptors.add(
    AwesomeDioInterceptor(
        logRequestTimeout: false,
        logRequestHeaders: false,
        logResponseHeaders: false,
        logger: debugPrint,
    ),
);

Alternatives

Packages that do the same job and could replace awesome_dio_interceptor.

Works with

Packages commonly used together with awesome_dio_interceptor: ones it builds on, ones built on it, and its own family.