ShapeAppearance

data class ShapeAppearance(val family: CornerFamily, val topLeft: Double, val topRight: Double, val bottomRight: Double, val bottomLeft: Double)

A platform-agnostic shape appearance specification declaring corner family and corner sizes. These are compiled to standard Android shapes and Apple corner radii.

See also

Constructors

Link copied to clipboard
constructor(family: CornerFamily, topLeft: Double, topRight: Double, bottomRight: Double, bottomLeft: Double)
constructor(family: CornerFamily, size: Double)

Constructs a symmetric ShapeAppearance applying the same size to all four corners.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun ShapeAppearance.toComposeShape(): CornerBasedShape

Converts this ShapeAppearance into a Compose CornerBasedShape.