是否可以在 Flutter Desktop 中使用任何类型的数据库

Is it possible to use any kind of database in Flutter Desktop

在为我的桌面应用编写 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.

您可以在以下link找到一些可以在桌面上使用的插件:

https://github.com/google/flutter-desktop-embedding/tree/master/plugins

目前 flutter desktop 或任何其他数据库上没有 firebase 插件。

Flutter 桌面仍处于早期阶段,因此最好不要将其用于生产。

最后,Supabase 在桌面和所有其他平台上完美运行。

此外,对于本地数据库 Hive 作品。