Skip to content

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

License

Notifications You must be signed in to change notification settings

yakupemeksiz/fancy_dio_inspector

 
 

Repository files navigation

Fancy Dio Inspector

A Dio inspector that allows you to log & copy every request, response and error.


Getting Started

Add dependency to your pubspec.yaml file.

dependencies:
  fancy_dio_inspector: ^1.4.1

Initialization

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

final dio = Dio();

dio.interceptors.add(FancyDioInterceptor());

Usage

Add FancyDioInspectorView to your widget tree.

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 48.2%
  • C++ 25.6%
  • CMake 21.1%
  • HTML 2.1%
  • C 1.6%
  • Swift 1.3%
  • Other 0.1%