An open API service indexing awesome lists of open source software.

https://github.com/gokhancvs/fancy_dio_inspector

A HTTP inspector for Dio. It allows you to log & copy cURL of every request, response or error.
https://github.com/gokhancvs/fancy_dio_inspector

dio flutter inspector

Last synced: 4 months ago
JSON representation

A HTTP inspector for Dio. It allows you to log & copy cURL of every request, response or error.

Awesome Lists containing this project

README

          

# Fancy Dio Inspector

A [Dio](https://pub.dev/packages/dio) inspector that allows you to log & copy every request, response and error.

[![pub package][pub_badge]][pub_badge_link]
[![License: MIT][license_badge]][license_badge_link]

---

## Getting Started

Add dependency to your `pubspec.yaml` file.

```dart
dependencies:
fancy_dio_inspector: ^2.0.1
```

## Initialization

Add `FancyDioInterceptor` to your Dio instance in order to catch every request, response and error.

```dart
final dio = Dio();

dio.interceptors.add(FancyDioInterceptor());
```

## Usage

Add `FancyDioInspectorView` to your widget tree.

```dart
class MyApp extends StatelessWidget {
const MyApp({super.key});

@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
endDrawer: kDebugMode ? FancyDioInspectorView() : null,
body: Center(child: Text('Hello World'),
),
),
);
}
}
```

## Authors

- [Gökhan Çavuş](https://github.com/gokhancvs)
- [Yakup Emeksiz](https://github.com/yakupemeksiz)

## Contributions

- [Patrick Chrestin](https://github.com/PatrickChrestin)
- [zhouyuzhouyu](https://github.com/zhouyuzhouyu)

[pub_badge]: https://img.shields.io/pub/v/fancy_dio_inspector.svg
[pub_badge_link]: https://pub.dartlang.org/packages/fancy_dio_inspector
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license_badge_link]: https://opensource.org/licenses/MIT