ping_discover_network icon indicating copy to clipboard operation
ping_discover_network copied to clipboard

Null safety

Open deakjahn opened this issue 4 years ago • 6 comments
trafficstars

Minimal changes to support null safety. Also removes dependency on wifi package that lags behind, replacing it with a simple function call. Some deprecated functions also fixed.

deakjahn avatar Mar 20 '21 14:03 deakjahn

several packages from this developer seem abandoned to me, it may be necessary to forked this package

renanzdm avatar Jun 16 '21 17:06 renanzdm

Minimal changes to support null safety. Also removes dependency on wifi package that lags behind, replacing it with a simple function call. Some deprecated functions also fixed.

@deakjahn Hi, does it work on iOS without wifi package?

phan-dev avatar Jun 25 '21 15:06 phan-dev

I only use it on Android so I can't really tell.

deakjahn avatar Jun 29 '21 10:06 deakjahn

@phan-dev FYI: I tried this branch and I'm confirmed the flutter_example worked fine on the iOS emulator. (iPhone 12 Pro Max; iOS 14.5)

machointossh avatar Jul 22 '21 03:07 machointossh

For _getLocalIpAddress, maybe use this package instead. https://pub.dev/packages/network_info_plus

import 'package:network_info_plus/network_info_plus.dart';
final info = NetworkInfo();
var wifiIP = await info.getWifiIP(); 

joeyw7 avatar Feb 28 '22 05:02 joeyw7

@joeyw7 I tried to add it to my fork (https://github.com/deakjahn/ping_discover_network) but the package would need some refactoring to work well with the new Android embedding. I can't test on iOS, either. It wasn't my original intention to create a new independent fork, just to create the base PR but I don't know if this gets abandoned now here or not.

deakjahn avatar Mar 01 '22 15:03 deakjahn