I'm trying to replicate the following behavior:
Specifically the gradient on the border. I can easily copy this behavior by using two Containers
stacked on each other: one that holds the radial-gradient (for the border) and another on top which is the background color. However, that doesn't work for me as I want the background color to be partially transparent so the content below this card is somewhat visible.
How else would you approach this? Use some sort of custom paint? Last case scenario I can just import the png and use it as a background but wanted to make this in code.
PS: You can create the following gradient by using a RadialGradient
where the center is the same as the rectangle's center.