flutter_network_inspector 0.1.5 copy "flutter_network_inspector: ^0.1.5" to clipboard
flutter_network_inspector: ^0.1.5 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 Scaffold(
      appBar: AppBar(
        elevation: 3,
        title: const Text('Flutter Network Inspector'),
      ),
      body: const FNIHome(),
    );
  }
}
17
likes
0
points
39
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

connectivity_plus, flutter, http

More

Packages that depend on flutter_network_inspector