79107761

Date: 2024-10-20 18:27:42
Score: 1.5
Natty:
Report link

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.

Reasons:
  • Blacklisted phrase (1): this document
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Bram