📅  最后修改于: 2022-03-11 14:44:54.584000             🧑  作者: Mango
This mostly happens when you current file is the pubspec.yaml file. Just close or switch the main.dart or any .dart file. And it will work. Worked for me.