BadgePainter

class BadgePainter(source: Painter, color: Color, shape: BadgeShape) : DelegatePainter

Paints a badge over the source.

An area corresponding to the result of BadgeShape.createHoleOutline is cleared out first, to allow for visual separation with the badge,and then the BadgeShape.createOutline is filled with the color.

Constructors

Link copied to clipboard
constructor(source: Painter, color: Color, shape: BadgeShape)

Properties

Link copied to clipboard
open override val intrinsicSize: Size

Functions

Link copied to clipboard
fun DrawScope.draw(size: Size, alpha: Float, colorFilter: ColorFilter?)