Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flutter devtools network not receives any request

I tried to inspect my requests in DevTools, but I've only got "showing 0 of 0 requests" with a spinner going constantly in network tab(Nothing shows here). DevTools network tab

I am pretty sure that I've send few requests(since I can see the logs).

Here's my environment: Build environment

BTW, I use dio package to send requests.

like image 709
Kurt Avatar asked Jul 28 '26 09:07

Kurt


1 Answers

I have suffered from this issue as well after upgrading flutter.
What solved the issue for me was adding to main.dart:

import 'dart:io' as io;

if (kDebugMode) {
  io.HttpClient.enableTimelineLogging = true;
}

Before the runApp method.

like image 110
JordanDev Avatar answered Jul 30 '26 23:07

JordanDev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!