I'm making network calls in flutter by using HTTP package, i want to know which type of response is getting for those calls
Now go ahead and use this http object as you would normally do. var response = await http. get('https://jsonplaceholder.typicode.com/posts/'); It will print out all the headers, request body, response, and error in a proper format that is easy to read and looks pretty.
Dart DevTools is a suite of debugging and performance tools for Dart and Flutter. These tools are distributed as part of the dart tool and interact with tools such as IDEs, dart run , and webdev . The following table shows which tools you can use with common Dart app types. Flutter mobile or desktop. Flutter web.
Use flutter_stetho dart package to inspect network calls
Visit https://pub.dev/packages/flutter_stetho
Include this to your package's pubspec.yaml
dependencies: flutter_stetho:(version) >> for example flutter_stetho: ^0.4.1
Note: Based on dart version only, choose the Stetho package version
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With