dio_log_plus

Creator: coderz1093

Last updated:

0 purchases

dio_log_plus Image
dio_log_plus Images

Languages

Categories

Add to Cart

Description:

dio log plus

dio_log_plus #

Language: English README | 中文简体 README
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
Screenshot #


















Add dependency #
dependencies:
dio_log_plus: ^4
copied to clipboard
set interceptor of dio #
dio.interceptors.add(DioLogInterceptor());
copied to clipboard
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()
copied to clipboard
Or open a log list where you want it to be #
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => HttpLogListWidget(),
),
);
copied to clipboard
Other configurable parameters #
/// Sets the maximum number of entries for logging
LogPoolManager.getInstance().maxCount = 100;
///Add the isError method implementation to LogPoolManager so that request messages defined as errors are displayed in red font
LogPoolManager.getInstance().isError = (res) => res.resOptions==null;
///Disabling Log Printing
DioLogInterceptor.enablePrintLog = false;
copied to clipboard
Thanks #
dio_log

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.