Reputation: 35
There is not pubspec.yaml
file how should I edit it now?
The project is running just fine without any errors.
Upvotes: 2
Views: 2613
Reputation: 11
you may change the android mode to project mode image in this link
change the choose of android to project select project
finally you will see pubspec.yaml 🎉🎉
Upvotes: 1
Reputation: 4556
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.
Upvotes: 4
Reputation: 315
Flutter cannot run without pubspec.yaml
file. You are just looking into the android file of it.
Instead of android choose project from the drop down menu and you can see pubspec.yaml
file again
Upvotes: 1
Reputation: 4769
Well, you have opened the android folder which is inside the main folder.
The flutter has the file structure as
The pubspec.yaml
file resides in the main folder
Upvotes: 1