Search code examples
android-studioandroid-sqliteflutter

Using a Premade Database in Flutter(Android Studio)


I am working on a project using Android Studio that should be getting data from a sqlite database file. For this I am using the sqflite package, and I will have no need to update the database from the app.

I would like to know how I could incorporate my premade database file into this flutter app instead of relying on the onCreate method and placing SQL commands in my dart srouce.

Thank you!


Solution

  • i think you are looking for this the idea is just to add it to your assets and load it

    • also take a look at this