Skip to content
pubscout

network_inspector

1.1.4, released a year ago by meruyatechnology.com

Http inspector and logger for Dio and Http packages with UI and local sqlite storage.

$ flutter pub add network_inspector
Source repository

What it does

Logs every HTTP request, response, and error for Dio and Http clients, stores them locally using SQLite, and provides an out-of-the-box activity page UI to inspect them.

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

Use it when

  • You want to inspect HTTP requests, responses, and errors directly inside your Flutter app using a visual UI.
  • You need to log network activities for both Dio and the standard http package.

Skip it when

  • You only need console logging without any in-app visual UI.
  • You are using an HTTP client other than Dio or the standard http package.

Strengths

  • Supports both Dio and http packages.
  • Includes built-in Material 3 and dark mode UI for inspecting network traffic.
  • Persists logs locally using SQLite.

Weaknesses

  • Relies on manual navigation setup or GlobalKey configuration to open the inspector UI.
  • Limited to Dio and standard http package clients.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
7

Call NetworkInspector.initialize() after WidgetsFlutterBinding.ensureInitialized(), and add the respective interceptor to your Dio or http clients.

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  NetworkInspector.initialize();
  runApp(const ExampleApp());
}

Alternatives

Packages that do the same job and could replace network_inspector.

  • pretty_dio_logger

    If you only use Dio and prefer pretty console logging over an in-app visual UI.

  • talker

    If you want a more comprehensive logging and error-handling ecosystem with a dedicated Flutter screen.

Works with

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