diff --git a/packages/firebase_storage/firebase_storage/lib/firebase_storage.dart b/packages/firebase_storage/firebase_storage/lib/firebase_storage.dart index e51e882d8b2e..1e6a7b988a6a 100755 --- a/packages/firebase_storage/firebase_storage/lib/firebase_storage.dart +++ b/packages/firebase_storage/firebase_storage/lib/firebase_storage.dart @@ -7,10 +7,6 @@ library firebase_storage; import 'dart:async'; import 'dart:convert' show utf8, base64; -import 'dart:io' show File; -// TODO(Lyokone): remove once we bump Flutter SDK min version to 3.3 -// ignore: unnecessary_import -import 'dart:typed_data' show Uint8List; // import 'package:flutter/foundation.dart'; import 'package:firebase_core/firebase_core.dart'; @@ -18,6 +14,7 @@ import 'package:firebase_core_platform_interface/firebase_core_platform_interfac show FirebasePluginPlatform; import 'package:firebase_storage_platform_interface/firebase_storage_platform_interface.dart'; import 'package:flutter/foundation.dart'; +import 'package:universal_io/io.dart' show File; import 'src/utils.dart'; diff --git a/packages/firebase_storage/firebase_storage/pubspec.yaml b/packages/firebase_storage/firebase_storage/pubspec.yaml index f99e3a471172..2f3925389c55 100755 --- a/packages/firebase_storage/firebase_storage/pubspec.yaml +++ b/packages/firebase_storage/firebase_storage/pubspec.yaml @@ -25,6 +25,8 @@ dependencies: firebase_storage_web: ^3.10.3 flutter: sdk: flutter + # Used to expose File even when web isn't supported + universal_io: ^2.2.2 dev_dependencies: flutter_test: