Last updated:
0 purchases
fancy dio inspector
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.7.0
copied to clipboard
Initialization #
Add FancyDioInterceptor to your Dio instance in order to catch every request, response and error.
final dio = Dio();
dio.interceptors.add(FancyDioInterceptor());
copied to clipboard
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'),
),
),
);
}
}
copied to clipboard
Authors #
Gökhan Çavuş
Yakup Emeksiz
Contributions #
Patrick Chrestin
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.