diff --git a/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart b/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart index 0dc1690..bf13747 100644 --- a/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart +++ b/lib/pages/host_scan_page/host_scan_bloc/host_scan_bloc.dart @@ -46,16 +46,17 @@ class HostScanBloc extends Bloc { Initialized event, Emitter 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'); diff --git a/macos/Podfile.lock b/macos/Podfile.lock index 40a24a6..632a113 100644 --- a/macos/Podfile.lock +++ b/macos/Podfile.lock @@ -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