Skip to content

Commit 6f6b33a

Browse files
committed
use universal_io
1 parent 1160ba7 commit 6f6b33a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/firebase_storage/firebase_storage/lib/firebase_storage.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import 'package:firebase_core_platform_interface/firebase_core_platform_interfac
1414
show FirebasePluginPlatform;
1515
import 'package:firebase_storage_platform_interface/firebase_storage_platform_interface.dart';
1616
import 'package:flutter/foundation.dart';
17+
import 'package:universal_io/io.dart' show File;
1718

1819
import 'src/utils.dart';
1920

packages/firebase_storage/firebase_storage/pubspec.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ dependencies:
2525
firebase_storage_web: ^3.10.3
2626
flutter:
2727
sdk: flutter
28+
# Used to expose File even when web isn't supported
29+
universal_io: ^2.2.2
2830

2931
dev_dependencies:
3032
flutter_test:

0 commit comments

Comments
 (0)