It worked normally when I first created the flutter project and debug the project as soon as I created it. But after creating the second project, syntx errors continue to occur.
Most error messages are like this
Undefined class 'Key'. Try changing the name to the name of an existing class, or creating a class with the name 'Key'.
Undefined class 'Widget'. Try changing the name to the name of an existing class, or creating a class with the name 'Widget'.
The method 'setState' isn't defined for the type '_MyHomePageState'. Try correcting the name to the name of an existing method, or defining a method named 'setState'.
I just created a project and debug the file..