The database file you are bundling with your app cannot be in the lib folder. It needs to be a Flutter asset, and this document describes where to store a file as an asset, and how to let Flutter know it is there. The function _copyDbFromAssets in your code copies a bundled asset to the application's documents directory, where it can be accessed by sqlite.