![pub package](https://camo.githubusercontent.com/176c65ac9b79e56b0edbdcc25a7c141d2b746b067f83052e36bd0ad84f3c0067/68747470733a2f2f696d672e736869656c64732e696f2f7075622f762f64696f5f6c6f672e737667)
HTTP Inspector tool for Dart which can debugging http requests,Currently, DIO based HTTP capture is implemented
Of course, you can implement an Interceptor instead of a DiologInterceptor to adapt to other HTTP clients
flutter的HTTP检查器工具,可以帮助调试HTTP请求,目前实现了基于dio的http捕获
当然你可以通过自己实现Interceptor来代替DioLogInterceptor来适配其他Http client
dependencies:
dio_log : ^2.0.2
dio_log:
git:
url: git@github.com:flutterplugin/dio_log.git
ref: v2.0.2
dio.interceptors.add(DioLogInterceptor());
Add a global hover button on your home page to jump through the log list
///display overlay button 显示悬浮按钮
showDebugBtn(context,btnColor: Colors.blue);
///cancel overlay button 取消悬浮按钮
dismissDebugBtn();
///overlay button state of display 悬浮按钮展示状态
debugBtnIsShow()
Or open a log list where you want it to be
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => HttpLogListWidget(),
),
);
Other configurable parameters
/// Sets the maximum number of entries for logging 设置记录日志的最大条数
LogPoolManager.getInstance().maxCount = 100;
![](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/log_list.jpg)
![](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/log_request.jpg)
![](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/log_response.jpg)
![gif](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/dio_log_example.gif)
welcome to add my WeChat,Hand over a friend
![](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/wechat.png)