flutter_network_inspector 2.0.0 copy "flutter_network_inspector: ^2.0.0" to clipboard
flutter_network_inspector: ^2.0.0 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.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_network_inspector/ui/fni_home.dart';
import 'package:network_interceptor_demo/services.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Network Inspector Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const Home(),
    );
  }
}

class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback(
      (_) => Services.executeTestCalls(),
    );
  }

  @override
  Widget build(BuildContext context) {
    return const FNIHome();
  }
}
17
likes
160
points
38
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

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

connectivity_plus, dio, flutter, http

More

Packages that depend on flutter_network_inspector