dio_request_inspector 3.0.1 copy "dio_request_inspector: ^3.0.1" to clipboard
dio_request_inspector: ^3.0.1 copied to clipboard

Debug and Sharing your HTTP Request/Response with UI Inspector.

pub package License: BSD 3-Clause pub package

Dio Requests Inspector Package

Effortlessly Debug Your Flutter Network Requests

"Dio Request Inspector" is a handy open-source tool for **monitoring and analyzing HTTP requests** in Flutter applications using the Dio package. It provides real-time insights, detailed request information, and filtering capabilities, making it easy to **track and troubleshoot server interactions**.



Get Started #

Installation

Add the dependency to your pubspec.yaml:

You can use the command to add dio_request_inspector as a dependency with the latest stable version:

$ flutter 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

The latest version is: pub package

Basic Usage #

  1. Create DioRequestInspector instance
DioRequestInspector dioRequestInspector = DioRequestInspector(isDebugMode: true);
  1. Add DioRequestInterceptor to your Dio instance
_dio.interceptors.add(dioRequestInspector.getDioRequestInterceptor());
  1. Wrap your MaterialApp with DioRequestInspectorMain
DioRequestInspectorMain(inspector: dioRequestInspector, child: MyApp())
  1. Integrate with MaterialApp (version >= 3.0.0) Wrap your MaterialApp with DioRequestInspectorMain and utilize the navigatorObservers property to enable automatic navigation to the inspector UI:
DioRequestInspectorMain(
  inspector: dioRequestInspector,
  child: MaterialApp(
    // Your MaterialApp configuration
    navigatorObservers: [
      DioRequestInspector.navigatorObserver,
    ],
  ),
)

See Inspector UI #

Run your app and long press on the screen to open the inspector UI.

16
likes
0
points
415
downloads

Publisher

unverified uploader

Weekly Downloads

Debug and Sharing your HTTP Request/Response with UI Inspector.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dartz, dio, equatable, flutter, get_it, intl, provider, rxdart, share_plus

More

Packages that depend on dio_request_inspector