Everything was going well until I copied a full flutter code from another file and pasted it on the main.dart. Then the ide started showing errors on the code which was running smoothly just before. Then I tried the default demo code of flutter project in android studio. It also showed similar error which is the image i am attaching with this. flutter doctor is Ok and not showing any error. Tried updating android studio and all plugins , till no change. Googled it and didnt find any thread. If anyone know please help...
CodePudding user response:
Check if you have required dependencies in the pubspec.yaml and then run flutter pub get.
CodePudding user response:
Problem got fixed after I removed and reinstalled flutter
