0

image

There is not pubspec.yaml file how should I edit it now? The project is running just fine without any errors.

My Car
  • 4,198
  • 5
  • 17
  • 50
Legend
  • 15
  • 3

3 Answers3

2

All you have to do is click the Android button in the upper left corner and select the Project button. You will see pubspec.yaml. If you don't see pubspec.yaml, you can leave a comment.

My Car
  • 4,198
  • 5
  • 17
  • 50
1

Flutter cannot run without pubspec.yaml file. You are just looking into the android file of it.

Android View

Project View

Instead of android choose project from the drop down menu and you can see pubspec.yaml file again

Nikhil
  • 275
  • 1
  • 9
1

Well, you have opened the android folder which is inside the main folder.

The flutter has the file structure as enter image description here

The pubspec.yaml file resides in the main folder

Sujan Gainju
  • 4,273
  • 2
  • 14
  • 34
  • It is opened default when I made a new project with flutter, using vs code works fine now. Thank you for answering. – Legend Sep 24 '22 at 16:10