Skip to content
pubscout

chuck_interceptor

3.2.2, released 5 weeks ago by an unverified publisher

An HTTP inspection and debugging tool for Flutter apps.

Uses material_ui
$ flutter pub add chuck_interceptor
Source repository

What it does

Chuck catches and stores HTTP requests and responses, providing a simple built-in UI to view headers, payloads, errors, and statistics. It supports Dio, dart:io HttpClient, and any other HTTP client via a client-agnostic logging API.

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

Use it when

  • You need to inspect and debug HTTP traffic directly inside your Flutter app.
  • You want a floating inspector button or shake gesture to view network calls during development.

Skip it when

  • You are in a strict production-only environment where network payload storage overhead must be completely avoided (unless disabled).
  • You need an external desktop proxy tool like Charles Proxy or Fiddler instead of an in-app viewer.

Strengths

  • Supports Dio, HttpClient, and custom/client-agnostic HTTP logging.
  • Comes with a floating call counter button and shake-to-open capabilities.
  • Provides curl command generation and call search/filtering.

Weaknesses

  • Requires passing a navigator key or using app builder to display the UI.
  • Stores HTTP request and response history in memory, which needs sizing limits for heavy traffic.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
4

Initialize Chuck, pass the navigator key to MaterialApp, and add the Dio interceptor or use the client-agnostic API.

Chuck chuck = Chuck();
Dio dio = Dio();
dio.interceptors.add(chuck.dioInterceptor);

Alternatives

Packages that do the same job and could replace chuck_interceptor.

Works with

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