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.
- Host: GitHub
- URL: https://github.com/gokhancvs/fancy_dio_inspector
- Owner: gokhancvs
- License: mit
- Created: 2023-05-16T05:50:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-06T13:17:03.000Z (10 months ago)
- Last Synced: 2025-10-23T00:25:32.573Z (9 months ago)
- Topics: dio, flutter, inspector
- Language: Dart
- Homepage: https://pub.dev/packages/fancy_dio_inspector
- Size: 346 KB
- Stars: 6
- Watchers: 1
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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