Flutter Desktop是否可以使用任何类型的数据库 [英] Is it possible to use any kind of database in Flutter Desktop

查看:147
本文介绍了Flutter Desktop是否可以使用任何类型的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的桌面应用程序执行了2周的UI代码后,我才发现Firebase不支持Flutter桌面,Sqflite也无法正常工作.那么,如何才能为Flutter桌面访问任何类型的数据库? 我已经尝试过Sqflite和Firebase,而Rest API还不够.

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.

推荐答案

根据此页面:

Flutter桌面API仍处于开发的早期阶段,如有更改,恕不另行通知.不会提供API或ABI的向后兼容性.期望在使用Flutter更新之后,需要更新和重新编译使用这些库的所有代码

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

当前在flutter桌面或任何其他数据库上没有用于Firebase的插件.

Currently there is no plugin for firebase on flutter desktop or any other database.

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

Flutter desktop is still in early stages so it's probably better not to use it for production.

这篇关于Flutter Desktop是否可以使用任何类型的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆