Some time ago, when I was customizing the chart, the graphic artist gave me a gradient bar. At first, I didn’t make the gradient bar. Later, I consulted the information to know how to set the gradient bar
The artist’s renderings are as follows:
Unable to find a suitable third-party component online, I used Cancas to draw it by myself, mainly using CustomPaint and CustomPainter. Part of the gradient code is as follows:
!
Draw out the renderings as follows:
In addition to the effect given by the artist, we can change the value to achieve other effects:This creates a stripe effect.