Reputation: 1655
The dart plugin is not working for this file, it worked in the past, but for some reason, it stopped working today.
Upvotes: 4
Views: 1347
Reputation: 8246
from this github issue there could be several sources of the error
TL:DR
Some things to look at:
It could be that something is causing the analysis server to shut down. That would explain having syntax highlighting when you start up but not when opening new files.
some users have reported that Material Theme could be causing the issue.
Upvotes: 0
Reputation: 41
The solution should be simple: Right click on the file and in the middle of the menu "Mark as dart file".
Upvotes: 1