Skip to content
pubscout

floating_logger

2.1.3, released 6 weeks ago by wiseelevated.my.id

A floating widget for real-time API request logging and debugging in Flutter.

$ flutter pub add floating_logger
Source repository

What it does

Provides a draggable floating widget that monitors API requests in real-time, displays JSON responses and headers, copies cURL commands, and simulates network conditions.

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

Use it when

  • You want to inspect HTTP requests and responses directly on-device using a floating widget.
  • You need to quickly copy cURL commands from app network requests.
  • You need to simulate slow network conditions or offline states during testing.

Skip it when

  • You are not using the Dio networking library.
  • You require backend production logging integration without on-device UI overlays.

Strengths

  • Includes a built-in network simulator for testing slow and offline conditions.
  • Supports copying cURL commands easily with a long tap.
  • Offers advanced JSON search, deep filtering, and web inspector support.

Weaknesses

  • Tied directly to the Dio package ecosystem.
  • UI overlay might interfere with user flow if left enabled in production builds.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
2

Add the dependency, wrap your app or widget with FloatingLoggerControl, and add FloatingLoggerInterceptor to your Dio instance or use DioLogger.

return FloatingLoggerControl(
  child: Scaffold(
    appBar: AppBar(
      title: const Text("Floating Logger Test"),
    ),
    body: Center(child: Text("Logger is active!")),
  ),
);

Alternatives

Packages that do the same job and could replace floating_logger.

Works with

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