Skip to content
pubscout

fancy_dio_inspector

2.0.1, released a year ago by gokhancavus.com

An HTTP inspector widget and interceptor for Dio to log and view requests, responses, and errors.

WASM-ready
$ flutter pub add fancy_dio_inspector
Source repository

What it does

It catches HTTP requests, responses, and errors made via Dio using an interceptor and displays them in a dedicated widget view. Developers can view request details and copy cURL commands directly from the UI.

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

Use it when

  • You are using the Dio package for networking in your Flutter app.
  • You need a visual debugging tool to inspect HTTP traffic during development.

Skip it when

  • You are not using Dio for your network requests.
  • You require a network inspector that operates completely outside the widget tree without custom UI views.

Strengths

  • Allows viewing and copying cURL commands for every request.
  • Provides a built-in UI view (`FancyDioInspectorView`) for easy integration.
  • Supports localization and theme customization.

Weaknesses

  • Tied specifically to the Dio HTTP client.
  • UI inspector view must be manually added to your widget tree.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add the dependency, add FancyDioInterceptor to your Dio instance, and place FancyDioInspectorView in your widget tree.

final dio = Dio();
dio.interceptors.add(FancyDioInterceptor());

Alternatives

Packages that do the same job and could replace fancy_dio_inspector.

  • pretty_dio_logger

    If you prefer console-only logging for Dio requests rather than an in-app visual inspector widget.

  • inspector

    If you need a general-purpose debugging and inspection suite.

Works with

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