- Add dependencies latest_version
dependencies:
network_capture: ^latest_version
- Change your App to
NetworkCaptureApp
void main() {
runApp(NetworkCaptureApp(
enable: true,
navigatorKey: navigatorKey,
child: const MyApp(),
));
}
- Add
CaptureDioInterceptor
to Dio interceptors
dio.interceptors.add(CaptureDioInterceptor());