-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when adding package to project. - Error: The argument type 'InternetAddress/*1*/' can't be assigned to the parameter type 'InternetAddress/*2*/' #83
Comments
Hi @Tmarks2a I see that you are not running the last available version Please test it with the new version and add the following info so that we will have more understanding of the crash. What os and version did you run it on (Windows Linux android ...) |
Similar to this is dint-dev/universal_io#19 |
Nice catch @git-elliot Someone suggested there some work around, so if we can reproduce it it is another fix that we can take |
@Tmarks2a I'm not able to reproduce this on latest version of network_tools and flutter. Snippet I tried running MdnsScanner.findingMdnsWithAddress("_airplay").then((value) {
for (ActiveHost activeHost in value) {
InternetAddress address = activeHost.internetAddress;
print(address);
}
}); Not to forget InternetAddress can either be imported from universal_io/io.dart or dart:io. Code works for both imports. |
Please reopen if still facing the issue. |
{user}/AppData/Local/Pub/Cache/hosted/pub.dev/network_tools-3.0.0+3/lib/src/mdns_scanner/mdns_scanner.dart:102:28: Error: The argument type 'InternetAddress/1/' can't be assigned to the parameter type 'InternetAddress/2/'.
internet_address.dart:1
internetAddress: internetAddress,
The text was updated successfully, but these errors were encountered: