Color Preview in VSCode is fooled when using custom classes ending with "Colors". #2857
Labels
in editor
Relates to code editing or language features
in flutter
Relates to running Flutter apps
is bug
Milestone
Describe the bug
If the name of the class finishes with Colors, VSCode shows a preview as if the class name was Colors. (see the screenshot)
To Reproduce
You can use this code:
Expected behavior
Preferably it should show the actual color in all cases, but a quick fix could be to not show the color preview when the class is not "Colors".
Screenshots
![Screenshot 2020-10-08 at 10 49 29](https://user-images.githubusercontent.com/9751815/95436286-f3135c80-0953-11eb-8869-fca005397b3b.png)
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: