Dio Requests Inspector Package
"Dio Request Inspector" is a handy open-source tool for monitoring and analyzing HTTP requests in Flutter using the Dio package. It provides real-time monitoring, detailed request information, and filtering capabilities, making it easy to track and troubleshoot server interactions in your Flutter projects.
Features
✔️ Real-time monitoring of HTTP requests in your Flutter application.
✔️ Detailed information about each request, including URL, request method, headers, and payload data.
✔️ Filter and search functionality to quickly find relevant requests based on criteria such as URL, method, or status code.
✔️ Easy integration with Flutter projects using the Dio package.
✔️ Intuitive and user-friendly UI for seamless request exploration and analysis.
Get started
Add dependency
You can use the command to add dio_request_inspector as a dependency with the latest stable version:
$ dart pub add dio_request_inspector
Or you can manually add dio_request_inspector into the dependencies section in your pubspec.yaml:
dependencies:
dio_request_inspector: ^replace-with-latest-version
Super simple to use
- Create DioRequestInspector instance
DioRequestInspector dioRequestInspector = DioRequestInspector(isDebugMode: true);
- Add DioRequestInterceptor to your Dio instance
_dio.interceptors.add(dioRequestInspector.getDioRequestInterceptor());
- Wrap your MaterialApp with DioRequestInspectorMain
DioRequestInspectorMain(inspector: dioRequestInspector, child: MyApp())
- add NavigatorKey to your MaterialApp for direct to Inspector UI
navigatorKey: dioRequestInspector.navigatorKey,
Contributing
If you would like to contribute to this project, please feel free to submit a pull request.
Libraries
- common/copy
- common/enums
- common/extensions
- common/failure
- common/injection
- common/interceptor
- common/snack_bar
- common/utils/byte_util
- common/utils/date_time_util
- common/utils/json_util
- common/utils/url_util
- data/datasources/local_data_source
- data/mappers/mapper
- data/models/form_data
- data/models/http_activity
- data/models/http_error
- data/models/http_request
- data/models/http_response
- data/repositories/dio_request_repository_impl
- dio_request_inspector
- domain/repositories/dio_request_repository
- domain/usecases/clear_log_usecase
- domain/usecases/get_log_usecase
- domain/usecases/save_error_usecase
- domain/usecases/save_request_usecase
- domain/usecases/save_response_usecase
- presentation/dashboard/page/dashboard_page
- presentation/dashboard/provider/dashboard_notifier
- presentation/dashboard/widget/dot_animation
- presentation/dashboard/widget/item_response_widget
- presentation/detail/page/detail_page
- presentation/detail/provider/detail_notifier
- presentation/detail/widget/card_item_widget
- presentation/detail/widget/overview_item_widget
- presentation/detail/widget/response_header_widget
- presentation/detail/widget/response_json_widget
- presentation/main/page/main_page