Skip to content

Commit

Permalink
localInterface added
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 18, 2024
1 parent 26615e0 commit 85ada08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@ class HostScanBloc extends Bloc<HostScanEvent, HostScanState> {
Initialized event,
Emitter<HostScanState> emit,
) async {
final info = NetworkInfo();
devicesSet.clear();
mDnsDevices.clear();
emit(const HostScanState.loadInProgress());
String? wifiGatewayIP;
try {
wifiGatewayIP = await NetworkInfo().getWifiGatewayIP();
wifiGatewayIP = await info.getWifiGatewayIP();
} catch (e) {
debugPrint('Unimplemented error $e');
}
ip = await NetworkInfo().getWifiIP();
ip = await info.getWifiIP();
if (appSettings.customSubnet.isNotEmpty) {
gatewayIp = appSettings.customSubnet;
debugPrint('Taking gatewayIp from appSettings: $gatewayIp');
Expand Down
6 changes: 3 additions & 3 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ EXTERNAL SOURCES:
:path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos

SPEC CHECKSUMS:
flutter_local_notifications: 4b427ffabf278fc6ea9484c97505e231166927a5
flutter_local_notifications: 7062189aabf7f50938a7b8b6614ffa97656eb0bf
flutter_timezone: 6b906d1740654acb16e50b639835628fea851037
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
in_app_review: a850789fad746e89bce03d4aeee8078b45a53fd0
isar_flutter_libs: 43385c99864c168fadba7c9adeddc5d38838ca6a
network_info_plus: f4fbc7877ab7b3294500d9441dfa53cd54972d05
network_info_plus: 2cb02d8435635eae13b3b79279681985121cf30c
nsd_macos: 1a38a38a33adbb396b4c6f303bc076073514cadc
package_info_plus: 02d7a575e80f194102bef286361c6c326e4c29ce
package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b
path_provider_foundation: 2b6b4c569c0fb62ec74538f866245ac84301af46
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
url_launcher_macos: c82c93949963e55b228a30115bd219499a6fe404
Expand Down

0 comments on commit 85ada08

Please sign in to comment.