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

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

Network Tools Flutter #

pub package Dart codecov

Features #

This package will add support for flutter features which is out of the scope of network_tools because of platform limitations.

Getting started #

Usage #

Add dependency in pubspec.yml, path_provider dependency is also needed

dependencies:
  flutter:
    sdk: flutter
    
  network_tools_flutter: ^1.0.4
  path_provider: ^2.1.2

And initialize the pacakge in the main function

 await configureNetworkToolsFlutter((await getApplicationDocumentsDirectory()).path);

From here please follow the documentation of network_tools as they are the same.

For mDNS search on android make sure your min Android API level is 21 and add the following permissiongs to the manifest file

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />

And for iOS add permissions to the Info.plist (replace service type with your own):

<key>NSLocalNetworkUsageDescription</key>
<string>Required to discover local network devices</string>
<key>NSBonjourServices</key>
<array>
    <string>_http._tcp</string>
</array>

5
likes
130
pub points
80%
popularity

Publisher

verified publisherfsoc13ty.blogspot.com

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

Repository (GitHub)
View/report issues

Topics

#network #ping #arp #port #scanner

Documentation

API reference

Funding

Consider supporting this project:

liberapay.com
ko-fi.com

License

Apache-2.0 (LICENSE)

Dependencies

dart_ping, dart_ping_ios, fake_http_client, flutter, flutter_isolate, intl, logging, multicast_dns, network_tools, nsd, path_provider, universal_io

More

Packages that depend on network_tools_flutter