Is there a solution to work with sqlite on Flutter Desktop for Windows?
5,109
Solution 1
Sqflite is not available on desktop but you can use moor which is very close to Sqflite, according to the documentation: moor works on Android, iOS, macOS, Windows, Linux & Web
I advise you to use it to have a real support on all platforms very easily.
Solution 2
You can try ObjectBox. https://github.com/objectbox/objectbox-dart
- Add dependencies to your project
- On windows, run bash <(curl -s https://raw.githubusercontent.com/objectbox/objectbox-dart/main/install.sh)
- It will download objectbox.dll, put it to path your-project\build\windows\runner\Debug\ or \Release
- enjoy!
Author by
Nadim Gouia
Updated on December 17, 2022Comments
-
Nadim Gouia over 1 year
I am searching for a plugin or any solution that make SQLite work on flutter desktop windows app, i tried sqflite plugin and it work well with macOS desktop app but it doesn't support windows.