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,
]),
CodePudding user response:
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