Can we use any kind of database in flutter desktop

十年热恋 提交于 2019-11-30 09:47:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!