Paint an Gradient on screen

Viewed 2599

To implement a color picker, I want to draw a rectangle with a gradient of colors inside. I tried to use a container with a DecoratedBox but it didn't quite work, as I had to give it a width, and I wanted it to fill its parent. What is the best way to draw a Gradient in flutter?

1 Answers
Related