Reputation: 101
I use Visual Studio to code in Flutter, when I first started Flutter on VS Code, it was showing color palettes for each color whenever I used to hover the mouse over the color name in the code Colors.yellow
, but after a day it suddenly stopped showing the color palette for any color.
First it used to show like this
Now it just shows it like this instead of showing the color palette
decoration: BoxDecoration(
gradient: RadialGradient(colors: [
Colors.yellow,
Colors.red,
]),
Upvotes: 4
Views: 2644
Reputation: 1261
Here is what i found. When input color, the color preview is collapsed by default. Click your mouse on the arrow to expand it. The color pallete will show automatically.
It also works for Icons
when input Icons.xxx
but cannot preview it.
Upvotes: 0
Reputation: 63614
You need to write the color 1st, then you will find color box and while hovering over the color box, you will get color picker.
While writing color
if you can't find while writing, press ctrl+space
key.
After writing color name
You can read the Color Picker for Flutter's Color(s) similar to CSS
Upvotes: 10