Skip to content

Commit

Permalink
fix(device_info_plus): WASM-compatible conditional imports
Browse files Browse the repository at this point in the history
  • Loading branch information
IchordeDionysos authored Apr 7, 2024
1 parent 58596ac commit 35f654c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 35f654c

Please sign in to comment.