Closed dorsamet closed 2 years ago
The solution comes from a problem in the Flutter ecosystem itself referenced here
It seems like the way to solve for this issue is to include the assets directory inside the lib
directory, and that way, there is no need to manually include the assets in the pubspec.yaml
. That's not new, but it definitely helps in the implementation.
Next, it is important to reference "package/module_name"
as the prefix to each file reference, as that's the way the system packages things.
The more you know :)
Hi,
I have a module called "data" inside my main project. That module depends on
flutter_dotenv
, and has two asset files inside the assets folder as follows:I may be defining the files wrong, but I cannot seem to find them when trying to
load
them in. Am I doing something wrong?