this is very basic problem that it has drove me crazy.
in flutter in the main file i want to import my "post_model" and "myapi" file to use their classes . and i can’t import them . and i have no idea why!!!!!!!!!
here its the picture of my files . and the error i get.. look at the red lines that doesn’t allow me to import!
the error is URI doesn’t exist .
and what i don’t understand is that there is no problem in importing in another file like in "in my api dart" .
the problem occurs just in main.dart file.!!
please help me . please .
>Solution :
First, move your api and models directory inside lib directory.
Then use the package:<your application name>/model/post_model.dart syntax rather than the relative path.

