I am brand new to Flutter and I am working on my first ever project which I aptly named "my_first_flutter_app". I’m followng along with the tuturial on the flutter codelab
and after replacing the contents of pubspec.yaml
and analysis_options.yaml
I get the errors listen here in my test file: enter image description here
how do I solve these and more importantly how do I prevent them on future projects
I tried flutter clean Flutter packages get and Flutter packages upgrade, none of which got rid of any of the errors
2
Answers
First try:
If none of the above works then reload VS code.
Ctrl+Shift+P
-Windows ORCmd+Shift+P
-MacDeveloper: Reload Window
Erase everything from that
widget_test.dart
file, paste the below-mentioned code into yourwidget_test.dart
file & it will resolve your issue.