问题
After 2 weeks of UI code for my desktop app I just found out that firebase doesn't support flutter desktop, Sqflite doesn't work too.So I how can I access any kind of database for flutter desktop? I've already tried Sqflite and Firebase, and Rest API isn't enough.
回答1:
According to this page:
The Flutter desktop APIs are still in early stages of development, and are subject to change without warning. No backwards compatibility, either API or ABI, will be provided. Expect any code using these libraries to need to be updated and recompiled after any Flutter update
Writing plugins is supported on all platforms, however there are currently very few plugins that actually have desktop support.
You can find some plugins that can be used on desktop on the following link:
https://github.com/google/flutter-desktop-embedding/tree/master/plugins
Currently there is no plugin for firebase on flutter desktop or any other database.
Flutter desktop is still in early stages so it's probably better not to use it for production.
来源:https://stackoverflow.com/questions/56551932/can-we-use-any-kind-of-database-in-flutter-desktop