flutter_network_inspector 0.1.4 copy "flutter_network_inspector: ^0.1.4" to clipboard
flutter_network_inspector: ^0.1.4 copied to clipboard

This package allows you to monitor network calls made with Dart’s http package. Track all your HTTP requests easily without using third-party libraries.

This package helps you to monitor networks calls done using the http package with in the app.

Features #

App Screenshot

Getting started #

Create a client for your network calls, which is an object of FNIClient. Then use this client to do all network calls. You can also use the network inspector UI to view all the info about the network calls. The UI is fully compatible with your app's theme.

Usage #

 final client = FNICLient();

 final postResponse = await client.post(
    Uri.parse('https://jsonplaceholder.typicode.com/posts'),
    headers: {'Content-Type': 'application/json'},
    body: '{"title": "foo", "body": "bar", "userId": 1}',
 );
 doLog('Response: ${postResponse.body}');

To view the details of network calls, you can add the Flutter network inspector UI anywhere in your widget tree.

 @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 3,
        title: const Text('Flutter Network Inspector'),
      ),
      body: const FNIHome(),
    );
  }
17
likes
0
points
37
downloads

Publisher

verified publisherflutterthemer.blogspot.com

Weekly Downloads

This package allows you to monitor network calls made with Dart’s http package. Track all your HTTP requests easily without using third-party libraries.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on flutter_network_inspector