在为我的桌面应用程序编写 UI 代码 2 周后,我发现 Firebase 不支持 Flutter 桌面,Sqflite 也不支持。那么我如何访问flutter桌面的任何类型的数据库呢? 我已经尝试过 Sqflite 和 Firebase,而 Rest API 还不够。
最佳答案
根据这个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.
您可以在以下链接找到一些可在桌面上使用的插件:
https://github.com/google/flutter-desktop-embedding/tree/master/plugins
目前 flutter 桌面或任何其他数据库上没有适用于 firebase 的插件。
Flutter 桌面仍处于早期阶段,因此最好不要将其用于生产。
关于firebase - Flutter Desktop 中是否可以使用任何类型的数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56551932/