point-source / dart_ping

Multi-platform network ping utility for Dart
30 stars 13 forks source link

In Windows release, you cannot use #16

Closed ZhangZhengzz closed 2 years ago

ZhangZhengzz commented 2 years ago

In Windows release, you cannot use

point-source commented 2 years ago

Gonna need a lot more information than that.

What version of windows? What version of dart_ping? What type of ping are you trying to run? Can you share a snippet of your code? Are you using this in pure dart or as part of a flutter app? What error are you getting when you try it?

Everyone's environment is different and this has big impacts on how things work. I can't read your mind or predict your environment. Please be more detailed about your reports. It goes a long way. Thanks

ZhangZhengzz commented 2 years ago

dart_ping: ^6.1.1 window10 I tried to open exe from a local file, then a doc command window appeared, and then I couldn't get Ping data. But I don't think this will happen when Android studio runs windows. Other devices have no problems in the debug or release versions, but there will be problems in the windows release or manually clicking the generated exe.

ZhangZhengzz commented 2 years ago

It is easy to open through the compilation tool, but if you manually open the generated exe, the doc command will appear and the data cannot be obtained. I created a stand-alone flutter application

ZhangZhengzz commented 2 years ago

It is easy to open through the compilation tool, but if you manually open the generated exe, the doc command will appear and the data cannot be obtained. I created a stand-alone flutter application

ZhangZhengzz commented 2 years ago

6e8dddb5db24252c3ba371a041663fb ![Uploading 193139f2438ad26b7f5fbf1bcc8cb60.png…]()

ZhangZhengzz commented 2 years ago

193139f2438ad26b7f5fbf1bcc8cb60

point-source commented 2 years ago

Thanks for the additional context. I will test this locally and get back to you

Vonarian commented 2 years ago

@point-source any update? I can't release the app :(

boganiLuca commented 2 years ago

This seems to be an issue with Flutter itself more than a package problem: I found different issues in github that speak of this. I followed the advice here and it solved the problem for me, so maybe it can help you too @Vonarian

Vonarian commented 2 years ago

@boganiLuca Sorry I didn't update my comment. I already have solved my issue with that fix to main.cpp :D Thanks.