Home > Net >  Unable to import files from a different directory in flutter
Unable to import files from a different directory in flutter

Time:11-07

I am trying to import a file profiles/first.dart from a different directory in main.dart but am unable to do so for some reason. I tried both with the lower and upper case but to no avail. I am able to import other files from a different director in profile/first.dart.

Here is the image where I am trying to import the file

Here is the image where I am able to import other files in profiles/first.dart

CodePudding user response:

I'm not sure what you are trying to do but you need to put your profile directory inside the lib directory. Looks like you have two profile directory one with upper case and another with lower case, just look at it.

  • Related