Home > Software design >  Flutter Dart File path
Flutter Dart File path

Time:03-18

quick Flutter Dart issue.

I am trying to read from a text file located inside the app's directory, however Flutter does not recognize a single file path that I provide it. The file path is always responded to with "OS Error: No such file or directory, errno = 2".

I am trying to read from a file located in assets/importfiles, from a dart class inside lib/viewmodels. The assets directory has already been added to pubsec.yaml.

enter image description here

to

assets Or importfiles

enter image description here

Thanks You.Happy To help you

  • Related