ShapeSchema
Discriminated union of Compose shapes used for ClipSchema and BorderSchema.radius.
Variants:
Circle →
CircleShape(fully circular, useful for avatar tiles or FABs).Rectangle →
RectangleShape(sharp corners, default when no clip is set).RoundedCornerRectangle →
RoundedCornerShapewith per-corner dp radii via RadiusSchema.
DSL helpers (mosaic-server):
circleShape()
rectangleShape()
roundedCornerShape(8) // uniform Int shorthand
roundedCornerShape(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0)
roundedCornerShape(radius = radius(topStart = 8, topEnd = 8, bottomStart = 0, bottomEnd = 0))Content copied to clipboard
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "rounded_corner_rectangle")