Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/network_info_plus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ jobs:
run: ./.github/workflows/scripts/build-examples.sh windows ./lib/main.dart

windows_integration_test:
if: false # TODO: reinstate this when the windows implementation is fixed
runs-on: windows-latest
timeout-minutes: 30
steps:
Expand Down
8 changes: 4 additions & 4 deletions packages/network_info_plus/network_info_plus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ The functionality is not supported on Web.

## Requirements

- Flutter >=3.3.0
- Dart >=2.18.0 <4.0.0
- iOS >=12.0
- macOS >=10.14
- Flutter >=3.41.0
- Dart >=3.11.0 <4.0.0
- iOS >=13.0
- macOS >=10.15
- Java 17
- Kotlin 2.2.0
- Android Gradle Plugin >=8.12.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import 'package:nm/nm.dart';
// ignore_for_file: public_member_api_docs

typedef _DeviceGetter = Future<String?> Function(NetworkManagerDevice? device);
typedef _ConnectionGetter = Future<String?> Function(
NetworkManagerActiveConnection? connection);
typedef _ConnectionGetter =
Future<String?> Function(NetworkManagerActiveConnection? connection);

@visibleForTesting
typedef NetworkManagerClientFactory = NetworkManagerClient Function();
Expand Down Expand Up @@ -76,8 +76,9 @@ class NetworkInfoPlusLinuxPlugin extends NetworkInfoPlatform {

Future<String?> _getDeviceValue(_DeviceGetter getter) {
return _getConnectionValue((connection) {
final device = connection?.devices
.firstWhereOrNull((device) => device.wireless != null);
final device = connection?.devices.firstWhereOrNull(
(device) => device.wireless != null,
);
return getter(device);
});
}
Expand Down
Loading
Loading