diff --git a/packages/firebase_storage/firebase_storage/lib/src/firebase_storage.dart b/packages/firebase_storage/firebase_storage/lib/src/firebase_storage.dart index 8fc79b2161c1..b833bfaba6e4 100644 --- a/packages/firebase_storage/firebase_storage/lib/src/firebase_storage.dart +++ b/packages/firebase_storage/firebase_storage/lib/src/firebase_storage.dart @@ -174,6 +174,12 @@ class FirebaseStorage extends FirebasePluginPlatform { } } + if (defaultTargetPlatform == TargetPlatform.windows && !kIsWeb) { + // ignore: avoid_print + print('The Storage Emulator is not available on Windows.'); + return; + } + await _delegate.useStorageEmulator(mappedHost, port); }