Skip to content
pubscout

chucker_flutter

1.9.2, released 6 months ago by syedmurtaza.site

Inspect HTTP(S) requests, responses, and network traffic with a built-in UI and local storage.

$ flutter pub add chucker_flutter
Source repository

What it does

Chucker Flutter acts as an interceptor for Dio, Http, and Chopper clients. It saves network requests and responses locally and provides an in-app UI and notification system for inspecting, searching, and sharing network traffic.

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

Use it when

  • You need to debug and inspect network calls directly inside your Flutter app during development.
  • You want an easy way to view pretty JSON, trees, and image previews for API requests and responses.

Skip it when

  • You are running in a strict production environment where network traffic inspection tools should be completely disabled (unless explicitly enabled via showOnRelease).
  • You use a networking library that is not supported by Chucker's built-in interceptors or clients.

Strengths

  • Supports multiple popular HTTP libraries including Dio, Http, and Chopper.
  • Provides an in-app UI, notifications, search, and sharing capabilities.
  • Works across Android, iOS, Web, Windows, macOS, and Linux.

Weaknesses

  • Requires manual integration of interceptors or client wrappers for every network request.
  • Requires setting a minimum SDK version of 22 for Android.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
6

For Android, you need to make minSdkVersion 22 in your build.gradle file. Wire ChuckerFlutter.navigatorKey into your root MaterialApp or router configuration.

Dio().interceptors.add(ChuckerDioInterceptor());

Alternatives

Packages that do the same job and could replace chucker_flutter.

  • http2

    An HTTP/2 implementation in Dart for low-level transport and pooled HTTP/2 requests.

  • alice_dio

    Dio interceptor and network logger for Alice network inspector UI

  • dio_web_adapter

    Web and WASM HTTP client adapter for Dio.

  • alice

    Advanced HTTP network inspector and logger with a native UI for Flutter.

Works with

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