Paint over an imagebutton

I’m trying to do a “slack type” profile button with a small circle drawn over it to indicate connection status. I have a ProfileComponent with an image button containing my picture which is fine, but when i paint(…) the paint goes UNDER the image button.

How can I control the draw order?

You can override paintOverChildren in your ProfileComponent to draw decorations over child components.

1 Like

Awesome exactly what i was looking for, thanks :slight_smile: