I need a rearrangeable triangle as an indicator above the container widget, which also gets the gradient of the container applied.
Right now the red triangle is a custom paint, but I am open to do it in another way. The location of it must be customisable. Everything is good till the gradient comes into play, because I cannot append it to the triangle as well.
So what I would need is a widget which combines the two elements (triangle and container) and lets me define a decoration for it just like for a normal container.



Use ClipPath() and for custom shape button I suggest to check that