diff --git a/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart b/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart index 87f17f7757..5cf05c6179 100644 --- a/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart +++ b/packages/package_info_plus/package_info_plus/lib/package_info_plus.dart @@ -9,7 +9,7 @@ import 'package:package_info_plus_platform_interface/package_info_platform_inter export 'src/package_info_plus_linux.dart'; export 'src/package_info_plus_windows.dart' - if (dart.library.html) 'src/package_info_plus_web.dart'; + if (dart.library.js_interop) 'src/package_info_plus_web.dart'; /// Application metadata. Provides application bundle information on iOS and /// application package information on Android. diff --git a/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart index bda9a39f66..093b0cebaf 100644 --- a/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart +++ b/packages/package_info_plus/package_info_plus/lib/src/package_info_plus_web.dart @@ -4,7 +4,7 @@ import 'package:flutter_web_plugins/flutter_web_plugins.dart'; import 'package:http/http.dart'; import 'package:package_info_plus_platform_interface/package_info_data.dart'; import 'package:package_info_plus_platform_interface/package_info_platform_interface.dart'; -import 'package:web/helpers.dart' as web; +import 'package:web/web.dart' as web; /// The web implementation of [PackageInfoPlatform]. ///