Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Inconsistent interfaces between firebase and firebase_io #333

Closed
Wylarel opened this issue Aug 20, 2020 · 1 comment
Closed

Inconsistent interfaces between firebase and firebase_io #333

Wylarel opened this issue Aug 20, 2020 · 1 comment

Comments

@Wylarel
Copy link

Wylarel commented Aug 20, 2020

Hello!

I need to import firebase on web and firebase_io on mobile. Here's how I do it:

import 'package:firebase/firebase.dart'
  if (dart.library.io) 'package:firebase/firebase_io.dart'
  if (dart.library.html) 'package:firebase/firebase.dart';

It works just fine on web, but on mobile, when using firebase_io, storage() is not defined. Any idea why? How can I avoid this? (Before, I was using firebase_storage/firebase_storage.dart but that doesn't seems compatible with firebase/firebase.dart either)

@kevmoo
Copy link
Contributor

kevmoo commented Oct 14, 2020

Use https://pub.dev/packages/firebase_storage !

@kevmoo kevmoo closed this as completed Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants