Based on: (https://pub.dev/packages/dio_log) with some improvements
dependencies:
dio_logs_manager : ^0.0.1
dio.interceptors.add(DioLogInterceptor());
///display overlay button
showDebugBtn(context);
///cancel overlay button
dismissDebugBtn();
///overlay button state of display
debugBtnIsShow()
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => LogsPage(),
),
);