Shapes
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( |
Public functions |
|
|---|---|
Shapes |
copy(Returns a copy of this Shapes, optionally overriding some of the values. |
open operator Boolean |
|
open Int |
hashCode() |
open String |
toString() |
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.