My Flutter IDE (Android Studio) doesn’t recognize
material.dart anymore! It happened suddenly, I was working normally then my PC turned off because of CPU 100% consumption and when I restarted I found this problem.
Flutter Issue Fix: 18-April-2020
It happened due to :
- You have created a project and then you try to push the code to Git ( and keeping your vscode open)
- Your package needs to update using command flutter packages get ( simply from vscode menu choose terminal and then run this command )
- If you still it didn’t fix your issue, simply go to File Menu, choose Close Folder, it fixes your issue.
- Last option restart VSCode.
Answered By – Shobhakar Tiwari
Answer Checked By – David Marino (FlutterFixes Volunteer)