osociety / network_tools

Networking Tools library which can help you discover open ports, devices on subnet and many other things.
https://pub.dev/packages/network_tools
BSD 3-Clause "New" or "Revised" License
42 stars 13 forks source link

Error: The argument type 'InternetAddress/*1*/' can't be assigned to the parameter type 'InternetAddress/*2*/ #203

Open mustafa-fahimi opened 4 months ago

mustafa-fahimi commented 4 months ago

Hi. I get below error when i try to run my project for web:

../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/network_tools-5.0.2/lib/src/services/impls/mdns_scanner_service_impl.dart:128:31: Error: The argument type 'InternetAddress/*1*/' can't be assigned to the parameter type 'InternetAddress/*2*/'.
 - 'InternetAddress/*1*/' is from 'dart:io'.
 - 'InternetAddress/*2*/' is from 'package:universal_io/src/internet_address.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/universal_io-2.2.2/lib/src/internet_address.dart').
          internetAddress: ip.address,

I am using version 5.0.2 My Flutter sdk is on version 3.19.6