Search packages, repositories and app categories

Package detailsv3.0.0

flutter_pretty_dio_logger

Show the correct json format, cUrl, easy to copy and use for many purposes.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
9.6K
Likes
26
Pub points
150

Install package

flutter pub add flutter_pretty_dio_logger

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that enhances Dio's logging by displaying HTTP requests and responses in a clean, formatted JSON structure. It includes cURL command generation for easy debugging and testing across environments. The output is visually organized, making it simple to copy and reuse request details. Ideal for developers who need clear, actionable logs during app development and API troubleshooting.

Use cases

  • Debugging API calls
  • Testing endpoints with cURL
  • Inspecting request/response bodies
  • Improving developer workflow
  • Sharing API data with team members

Key features

  • Formatted JSON output
  • cURL command generation
  • Easy copy-paste functionality
  • Cross-platform support
  • Clean visual formatting

Suitable for

  • Frontend developers
  • API testers
  • Team collaboration
  • Development environments
  • Quick debugging

Considerations

  • Not recommended for production
  • May increase log verbosity
  • Requires Dio integration
  • Limited customization options
  • Potential performance impact in heavy use

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_pretty_dio_logger

Show the correct json format, cUrl, easy to copy and use for many purposes.

Usage

import 'package:flutter_pretty_dio_logger/flutter_pretty_dio_logger.dart';
Dio dio = Dio();
dio.interceptors.add(
  PrettyDioLogger(
    requestHeader: true,
    queryParameters: true,
    requestBody: true,
    responseHeader: true,
    responseBody: true,
    error: true,
    showProcessingTime: true,
    showCUrl: true,
    // canShowLog: kDebugMode,
  ),
);

How it looks like

cUrl Example
Response Example

This package is inspired by pretty_dio_logger and curl_logger_dio_interceptor packages.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.