dio_log 1.1.1 dio_log: ^1.1.1 copied to clipboard
http requests log of dio .This plugin helps you display log information for requests
import 'package:dio/dio.dart';
import 'package:dio_log/dio_log.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
main() async {
var dio = Dio();
dio.interceptors.add(HttpLogInterceptor());
///this is context of widget
BuildContext context;
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => HttpLogListWidget(),
),
);
}