最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to add files to a flutter app without listing them in `flutter:assets` section in pubspec.yaml - Stack Overflow

programmeradmin1浏览0评论

I have a small app in flutter which uses a sqlite database through sqflite. I am trying to implement a simple migration:

  • Add sql script to the application in design time.
  • When the application starts, implement onCreate to look for the script files and execute them.

I don't want to list each file in the flutter: assets section in pubspec.yaml because I foresee I will have dozens of small sql scripts and listing them will be annoying.

I don't want to use drift because it's too heavy for what I want to do.

Is there a way to add the files to my app and list and read them?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论