skip to Main Content

enter image description here

here you can see. I am using Visual Stdio Code for Flutter development.

I want to create the file like "assets/images" . Already i delete and recreate the file for several times but the problem is not going. That’s why code shows some error I already serach on Stack Overflow but I couldn’t find the probable solution

2

Answers


  1. that is how vscode shows folder structure when there is only one subfolder, for example if you create another folder under assets it will look normal.

    Login or Signup to reply.
  2. First of all, Please rename your folder from "aasets" to "assets" and then

      assets:
            - assets/images/
    

    add it like this in pubspec.yaml

    Note: please add all subfolders(if you create more than 1) of assets directory.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search