flutter_pretty_dio_logger 1.0.0 flutter_pretty_dio_logger: ^1.0.0 copied to clipboard
Show the correct json format, easy to copy and use.
flutter_pretty_dio_logger #
Show the correct json format, easy to copy and use.
Usage #
import 'package:flutter_pretty_dio_logger/flutter_pretty_dio_logger.dart';
Dio dio = Dio();
dio.interceptors.add(
PrettyDioLogger(
requestHeader: true,
requestBody: true,
responseHeader: true,
responseBody: true,
error: true,
showProcessingTime: true,
debugOnly: true,
),
);
How it looks like #
This package is inspired by the pretty_dio_logger package.