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.