Right now the Flutterfire and firebase-dart packages have a similar but not quite identical Dart API for Firebase. Unifying these implementations around a common API package could enable re-use of code across web and mobile.
A couple of other packages that are worth mentioning for inspiration:
https://github.com/appsup-dart/firebase_dart
https://github.com/apptreesoftware/crossfire
And of course.
Regarding unifying: it would be also great to officially support Dart in Firebase Cloud Functions similarly to: firebase_functions_interop
cc @kroikie @puf
Since the native SDKs have the support of documentation should we have both firebase-dart and FlutterFire stay as close to the native SDK APIs as possible?
Flutter web + this = <3
It would be a true enabler for developers and a super powerful Cross platform full stack development tool
With Flutter desktop it could be really mind blowing to have the same code for mobile, desktop and web.
https://github.com/fluttercommunity/firebase_flutter_sdk seems promising but i hope one day the Firebase team will integrate it here to show good support.
I will copy here current output what happens if you are trying to use these plugins with web (just for others to find this ticket more easily).
I assume this issue is addressing web as well.
Flutter 1.10.11-pre.7 • channel master • https://github.com/flutter/flutter.git
$ flutter run -d chrome
Downloading Web SDK... 1.4s
Running "flutter pub get" in demoapp… 0.5s
Launching lib/main.dart on Chrome in debug mode...
Throwing away cached asset graph due to Dart SDK update.
Skipping compiling demoapp|lib/main_web_entrypoint.dart with ddc because some of its
transitive libraries have sdk dependencies that not supported on this platform:
firebase_core|lib/firebase_core.dart
https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings
Hi,
Is there anything in particular I could contribute help move this along? And/or any pointers on where to start looking?
Marking this as resolved since we now have four web-enabled FlutterFire packages. Please follow the FlutterFire README and Flutter Web Plugins board for the latest status on web support.
Huge thanks to @amrfarid140 @ditman @hterkelsen for making this possible.
Most helpful comment
Flutter web + this = <3
It would be a true enabler for developers and a super powerful Cross platform full stack development tool