class Shapes


Components are grouped into shape categories based on common features. These categories provide a way to change multiple component values at once, by changing the category’s values.

Summary

Public constructors

Shapes(
    small: CornerBasedShape,
    medium: CornerBasedShape,
    large: CornerBasedShape
)

Public functions

Shapes
copy(
    small: CornerBasedShape,
    medium: CornerBasedShape,
    large: CornerBasedShape
)

Returns a copy of this Shapes, optionally overriding some of the values.

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

CornerBasedShape

Cards use this shape

CornerBasedShape
CornerBasedShape

Buttons and Chips use this shape

Public constructors

Shapes

Added in 1.0.0
Shapes(
    small: CornerBasedShape = RoundedCornerShape(corner = CornerSize(50)),
    medium: CornerBasedShape = RoundedCornerShape(4.dp),
    large: CornerBasedShape = RoundedCornerShape(26.dp)
)

Public functions

copy

Added in 1.0.0
fun copy(
    small: CornerBasedShape = this.small,
    medium: CornerBasedShape = this.medium,
    large: CornerBasedShape = this.large
): Shapes

Returns a copy of this Shapes, optionally overriding some of the values.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

large

Added in 1.0.0
val large: CornerBasedShape

Cards use this shape

medium

Added in 1.0.0
val medium: CornerBasedShape

small

Added in 1.0.0
val small: CornerBasedShape

Buttons and Chips use this shape