Last updated:
0 purchases
flutter pretty dio logger
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';
copied to clipboard
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,
),
);
copied to clipboard
How it looks like #
This package is inspired by pretty_dio_logger and curl_logger_dio_interceptor packages.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.