SparkShapes

data class SparkShapes(val none: CornerBasedShape = RoundedCornerShape(0.dp), val extraSmall: CornerBasedShape = RoundedCornerShape(4.0.dp), val small: CornerBasedShape = RoundedCornerShape(8.0.dp), val medium: CornerBasedShape = RoundedCornerShape(12.0.dp), val large: CornerBasedShape = RoundedCornerShape(16.0.dp), val extraLarge: CornerBasedShape = RoundedCornerShape(28.0.dp), val full: CornerBasedShape = CircleShape)

Components are grouped into shape categories based on their size. These categories provide a way to change multiple component values at once, by changing the category’s values. SparkShapes categories include:

  • Small components

  • Medium components

  • Large components

Parameters

none

A shape style with 4 same-sized corners whose size are equal to RectangleShape. By default app bars, navigation bars, banners, full-screen dialogs, and navigation rails use this shape.

extraSmall

A shape style with 4 same-sized corners whose size are bigger than RectangleShape and smaller than SparkShapes.small. By default autocomplete menu, select menu, snackbars, standard menu, and text fields use this shape.

small

A shape style with 4 same-sized corners whose size are bigger than SparkShapes.extraSmall and smaller than SparkShapes.medium. By default chips use this shape.

medium

A shape style with 4 same-sized corners whose size are bigger than SparkShapes.small and smaller than SparkShapes.large. By default cards and small FABs use this shape.

large

A shape style with 4 same-sized corners whose size are bigger than SparkShapes.medium and smaller than SparkShapes.extraLarge. By default extended FABs, FABs, and navigation drawers use this shape.

extraLarge

A shape style with 4 same-sized corners whose size are bigger than SparkShapes.large and smaller than CircleShape. By default large FABs, Bottom sheets, Dialogs and Time picker use this shape.

full

A shape style with 4 same-sized corners whose size are equal to CircleShape. By default large Badge, Buttons, Icon buttons, Sliders, Switches and Search bar use this shape.

Constructors

Link copied to clipboard
constructor(none: CornerBasedShape = RoundedCornerShape(0.dp), extraSmall: CornerBasedShape = RoundedCornerShape(4.0.dp), small: CornerBasedShape = RoundedCornerShape(8.0.dp), medium: CornerBasedShape = RoundedCornerShape(12.0.dp), large: CornerBasedShape = RoundedCornerShape(16.0.dp), extraLarge: CornerBasedShape = RoundedCornerShape(28.0.dp), full: CornerBasedShape = CircleShape)

Properties

Link copied to clipboard
Link copied to clipboard
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