From 35f654c5c85d6d0ed8d2bbbd5487845c541b46fa Mon Sep 17 00:00:00 2001 From: Dennis Kugelmann Date: Sun, 7 Apr 2024 14:16:47 +0000 Subject: [PATCH] fix(device_info_plus): WASM-compatible conditional imports --- .../device_info_plus/lib/device_info_plus.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/device_info_plus/device_info_plus/lib/device_info_plus.dart b/packages/device_info_plus/device_info_plus/lib/device_info_plus.dart index 00ea08b3a9..38c8376299 100644 --- a/packages/device_info_plus/device_info_plus/lib/device_info_plus.dart +++ b/packages/device_info_plus/device_info_plus/lib/device_info_plus.dart @@ -26,9 +26,9 @@ export 'src/model/web_browser_info.dart'; export 'src/model/windows_device_info.dart'; export 'src/device_info_plus_linux.dart' - if (dart.library.html) 'src/device_info_plus_web.dart'; + if (dart.library.js_interop) 'src/device_info_plus_web.dart'; export 'src/device_info_plus_windows.dart' - if (dart.library.html) 'src/device_info_plus_web.dart'; + if (dart.library.js_interop) 'src/device_info_plus_web.dart'; /// Provides device and operating system information. class DeviceInfoPlugin {