fancy_dio_inspector_personal 1.0.1
fancy_dio_inspector_personal: ^1.0.1 copied to clipboard
A modified version of the Dio HTTP inspector, forked from the original fancy_dio_inspector.
Fancy Dio Inspector #
A Dio inspector that allows you to log & copy every request, response and error.
this fork is for sunbird89629 personal use. thanks for fancy_dio_inspector
Getting Started #
Add dependency to your pubspec.yaml file.
dependencies:
fancy_dio_inspector_personal: ^1.7.0
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'),
),
),
);
}
}
Todos #
- ❌ on HttpRequest items(request, response, error), user can add a customized button do do like share or other function
- ❌ add an another view show show http requests, there is a list show all requests and click to show the request detials
