问题
I'm trying to integrate Firebase Authentication for Flutter Desktop Embedding. Is there any Flutter plugin for Firebase Authentication for development in case Desktop Embedding.
I have tried using the Flutter plugin, firebase_auth plugin. But this works only in case of Android and iOS Platforms, getting missing implementation error while running on Desktop Embedding, in my case Windows, as the plugin doesn't have the implementation for Desktop Embedding.
info flutter.tools [ERROR:c:\b\s\w\ir\k\src\flutter\lib\ui\ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method currentUser on channel plugins.flutter.io/firebase_auth)
info flutter.tools #0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)
info flutter.tools <asynchronous suspension>
info flutter.tools #1 MethodChannel.invokeMapMethod (package:flutter/src/services/platform_channel.dart:344:48)
info flutter.tools <asynchronous suspension>
info flutter.tools #2 FirebaseAuth.currentUser (package:firebase_auth/src/firebase_auth.dart:382:10)
info flutter.tools <asynchronous suspension>
I was hoping to get any relevant article or material that will lead me to integrate the firebase authentication in the Flutter app that i'm developing for the Desktop. Is there any libraries other than firebase-auth.
回答1:
I am afraid flutter desktop is not yet ready for production use . So is incomplete. You can use firebase products via rest API but not via firebase official plugins.
来源:https://stackoverflow.com/questions/56539934/firebase-authentication-plugin-for-flutter-desktop-embedding