network_tools_flutter 2.0.3 copy "network_tools_flutter: ^2.0.3" to clipboard
network_tools_flutter: ^2.0.3 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>

6
likes
160
pub points
75%
popularity

Publisher

verified publisherop3nsoc13ty.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, flutter, flutter_isolate, intl, logging, multicast_dns, network_tools, nsd, path_provider, universal_io

More

Packages that depend on network_tools_flutter