![pub package](https://camo.githubusercontent.com/176c65ac9b79e56b0edbdcc25a7c141d2b746b067f83052e36bd0ad84f3c0067/68747470733a2f2f696d672e736869656c64732e696f2f7075622f762f64696f5f6c6f672e737667)
dependencies:
dio_log : ^2.0.0-nullsafety.0
dio_log:
git:
url: git@github.com:flutterplugin/dio_log.git
ref: develop
dio.interceptors.add(DioLogInterceptor());
Add a global hover button on your home page to jump through the log list
///display overlay button 显示悬浮按钮
showDebugBtn(context);
///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)
![](https://raw.githubusercontent.com/flutterplugin/dio_log/develop/images/wechat.png)