fancy_dio_inspector 1.2.3 copy "fancy_dio_inspector: ^1.2.3" to clipboard
fancy_dio_inspector: ^1.2.3 copied to clipboard

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

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.2.3

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 #

12
likes
0
pub points
82%
popularity

Publisher

verified publishergokhancavus.com

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter

More

Packages that depend on fancy_dio_inspector