Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 561
Hooshyar Avatar asked Oct 16 '22 14:10

Hooshyar


2 Answers

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.

like image 97
Peter Haddad Avatar answered Oct 20 '22 17:10

Peter Haddad


Finally, the Supabase Works perfectly on Desktop and all other platforms.

Also, for a local Database Hive a Works.

like image 21
Hooshyar Avatar answered Oct 20 '22 17:10

Hooshyar