I am pretty much looking to import and replace existing Sqlite database in Flutter. I am getting the current database with this:
getDatabasePath() async { String databasePath = await getDatabasesPath(); }
I can then export that .db file somewhere on the device. How would I go around importing that file and replacing the old one in the database with it, on, say, another device?
2.1m questions
2.1m answers
60 comments
57.0k users