Skip to content
pubscout

requests_inspector

5.5.1, released 3 months ago by abdelazeem-kuratem.engineer

Log, inspect, and share REST and GraphQL requests by shaking your phone.

$ flutter pub add requests_inspector
Source repository

What it does

A Flutter package for logging REST APIs and GraphQL requests. It provides an inspector widget that can be opened by shaking the phone or long-pressing the screen, letting developers view request details, copy cURL commands, and export HAR files.

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

Use it when

  • You need an on-device UI to debug and inspect network traffic during development.
  • You want to easily share request details, cURL commands, or HAR files with team members.

Skip it when

  • You are running a production app where network payload logging and request interception tools should be disabled.

Strengths

  • Supports both REST (via Dio or manual controller entry) and GraphQL.
  • Can trigger the inspector view by shaking the phone or long-pressing the screen.
  • Allows sharing requests as JSON, cURL, or HAR files.

Weaknesses

  • Relies on specific interceptors or manual logging if not using Dio or graphql_flutter.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
9

Wrap your MaterialApp or root widget with RequestsInspector and add the RequestsInspectorInterceptor to Dio.

void main() {
  runApp(const RequestsInspector(
    child: MyApp(),
  ));
}

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

Alternatives

Packages that do the same job and could replace requests_inspector.

Works with

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