Skip to main content

network_tools_flutter 3.0.6 copy "network_tools_flutter: ^3.0.6" to clipboard
network_tools_flutter: ^3.0.6 copied to clipboard

Extended features of network_tools package for flutter framework supporting iOS and Android

example/lib/main.dart

import 'package:example/pages/home_page.dart';
import 'package:flutter/material.dart';
import 'package:network_tools_flutter/network_tools_flutter.dart';
import 'package:path_provider/path_provider.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final appDocDirectory = await getApplicationDocumentsDirectory();
  await configureNetworkToolsFlutter(
    appDocDirectory.path,
    enableDebugging: true,
  );
  runApp(NetworkToolsExampleApp(dbDirectory: appDocDirectory.path));
}

/// Example app that exercises every public API of `network_tools_flutter`
/// (and through it, `network_tools`).
///
/// It doubles as a manual test harness: every scan method has controls for all
/// of its parameters, progress reporting, cancellation and full result output.
class NetworkToolsExampleApp extends StatelessWidget {
  const NetworkToolsExampleApp({super.key, required this.dbDirectory});

  final String dbDirectory;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'network_tools_flutter example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: HomePage(dbDirectory: dbDirectory),
    );
  }
}
8
likes
150
points
1.39k
downloads

Documentation

API reference

Publisher

verified publisherop3nsoc13ty.blogspot.com

Weekly Downloads

Extended features of network_tools package for flutter framework supporting iOS and Android

Repository (GitHub)
View/report issues

Topics

#network #ping #arp #port #scanner

Funding

Consider supporting this project:

liberapay.com
ko-fi.com

License

Apache-2.0 (license)

Dependencies

dart_ping, flutter, flutter_isolate, get_it, logging, meta, multicast_dns, network_tools, nsd, universal_io

More

Packages that depend on network_tools_flutter