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

Issue

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.

Solution

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.

Answered By – Peter Haddad

Answer Checked By – Dawn Plyler (FlutterFixes Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *