nirikshak 0.1.1 copy "nirikshak: ^0.1.1" to clipboard
nirikshak: ^0.1.1 copied to clipboard

Nirikshak is a lightweight Dio HTTP Inspector tool for Flutter which helps debugging http requests. It's a fork of popular package alice.

Nirikshak #

pub package pub package pub package pub package

Nirikshak is a lighweight Dio HTTP Inspector tool for Flutter which helps debugging http requests. Removed all the extra dependencies except Dio. It's a fork of Alice.

Features:
✔️ Removed all the dependenices except Dio
✔️ Detailed logs for each Dio HTTP calls (HTTP Request, HTTP Response)
✔️ Inspector UI for viewing HTTP calls
✔️ Statistics
✔️ Error handling
✔️ HTTP calls search

Install #

  1. Add this to your pubspec.yaml file:
dependencies:
  nirikshak: ^latest-version
  1. Install it
$ flutter packages get
  1. Import it
import 'package:nirikshak/nirikshak.dart';

Usage #

Nirikshak configuration #

  1. Create Nirikshak instance:
Nirikshak nirikshak = Nirikshak();

And that's it! Nirikshak will automatically takes the theme mode as per your app.

Dio configuration #

You just need to add the Dio interceptor.

Dio dio = Dio();
dio.interceptors.add(nirikshak.getDioInterceptor());

Show inspector manually #

To view the Nirikshak, you need to call showNirikshak with context:

nirikshak.showNirikshak(context);

Example #

See complete example here: https://github.com/thealteria/nirikshak/blob/main/example/lib/main.dart

9
likes
110
pub points
84%
popularity

Publisher

unverified uploader

Nirikshak is a lightweight Dio HTTP Inspector tool for Flutter which helps debugging http requests. It's a fork of popular package alice.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

dio, flutter

More

Packages that depend on nirikshak