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
- Add this to your pubspec.yaml file:
dependencies:
nirikshak: ^latest-version- Install it
$ flutter packages get- Import it
import 'package:nirikshak/nirikshak.dart';- Create Nirikshak instance:
Nirikshak nirikshak = Nirikshak();And that's it! Nirikshak will automatically takes the theme mode as per your app.
You just need to add the Dio interceptor.
Dio dio = Dio();
dio.interceptors.add(nirikshak.getDioInterceptor());To view the Nirikshak, you need to call showNirikshak with context:
nirikshak.showNirikshak(context);See complete example here: https://github.com/thealteria/nirikshak/blob/main/example/lib/main.dart








