class RemoteShapes


Material surfaces can be displayed in different shapes. Shapes direct attention, identify components, communicate state, and express brand.

The shape scale defines the style of container, offering a range of curved shapes (mostly polygonal). The default Shapes theme for Material3 is rounded rectangles, with various degrees of corner roundness:

  • Extra Small

  • Small

  • Medium

  • Large

  • Extra Large

You can customize the shape system for all components in the RemoteMaterialTheme or you can do it on a per component basis by overriding the shape parameter for that component. For example, by default, buttons use the shape style "large". If your product requires a smaller amount of roundness, you can override the shape parameter with a different shape value like RemoteShapes.small.

Summary

Public constructors

RemoteShapes(
    extraSmall: RemoteCornerBasedShape,
    small: RemoteCornerBasedShape,
    medium: RemoteCornerBasedShape,
    large: RemoteCornerBasedShape,
    extraLarge: RemoteCornerBasedShape
)

Public properties

RemoteCornerBasedShape

By default, provides RemoteShapeDefaults.ExtraLarge, a RemoteCornerBasedShape with 36dp RemoteCornerSize.

RemoteCornerBasedShape

By default, provides RemoteShapeDefaults.ExtraSmall, a RemoteCornerBasedShape with 4dp RemoteCornerSize (used by bundled Cards).

RemoteCornerBasedShape

By default, provides RemoteShapeDefaults.Large, a RemoteCornerBasedShape with 26dp RemoteCornerSize (used by Cards).

RemoteCornerBasedShape

By default, provides RemoteShapeDefaults.Medium, a RemoteCornerBasedShape with 18dp RemoteCornerSize (used by shape-shifting Buttons and rounded rectangle buttons).

RemoteCornerBasedShape

By default, provides RemoteShapeDefaults.Small, a RemoteCornerBasedShape with 8dp RemoteCornerSize.

Public constructors

RemoteShapes

Added in 1.0.0-alpha02
RemoteShapes(
    extraSmall: RemoteCornerBasedShape = RemoteShapeDefaults.ExtraSmall,
    small: RemoteCornerBasedShape = RemoteShapeDefaults.Small,
    medium: RemoteCornerBasedShape = RemoteShapeDefaults.Medium,
    large: RemoteCornerBasedShape = RemoteShapeDefaults.Large,
    extraLarge: RemoteCornerBasedShape = RemoteShapeDefaults.ExtraLarge
)
Parameters
extraSmall: RemoteCornerBasedShape = RemoteShapeDefaults.ExtraSmall

By default, provides RemoteShapeDefaults.ExtraSmall, a RemoteCornerBasedShape with 4dp RemoteCornerSize (used by bundled Cards).

small: RemoteCornerBasedShape = RemoteShapeDefaults.Small

By default, provides RemoteShapeDefaults.Small, a RemoteCornerBasedShape with 8dp RemoteCornerSize.

medium: RemoteCornerBasedShape = RemoteShapeDefaults.Medium

By default, provides RemoteShapeDefaults.Medium, a RemoteCornerBasedShape with 18dp RemoteCornerSize (used by shape-shifting Buttons and rounded rectangle buttons).

large: RemoteCornerBasedShape = RemoteShapeDefaults.Large

By default, provides RemoteShapeDefaults.Large, a RemoteCornerBasedShape with 26dp RemoteCornerSize (used by Cards).

extraLarge: RemoteCornerBasedShape = RemoteShapeDefaults.ExtraLarge

By default, provides RemoteShapeDefaults.ExtraLarge, a RemoteCornerBasedShape with 36dp RemoteCornerSize.

Public properties

extraSmall

Added in 1.0.0-alpha02
val extraSmallRemoteCornerBasedShape

By default, provides RemoteShapeDefaults.ExtraSmall, a RemoteCornerBasedShape with 4dp RemoteCornerSize (used by bundled Cards).

large

Added in 1.0.0-alpha02
val largeRemoteCornerBasedShape

By default, provides RemoteShapeDefaults.Large, a RemoteCornerBasedShape with 26dp RemoteCornerSize (used by Cards).

medium

Added in 1.0.0-alpha02
val mediumRemoteCornerBasedShape

By default, provides RemoteShapeDefaults.Medium, a RemoteCornerBasedShape with 18dp RemoteCornerSize (used by shape-shifting Buttons and rounded rectangle buttons).