SparkShapes

data class SparkShapes(val none: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(0.dp), val extraSmall: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(4.0.dp), val small: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(8.0.dp), val medium: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(12.0.dp), val large: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(16.0.dp), val extraLarge: ERROR CLASS: Symbol not found for CornerBasedShape = RoundedCornerShape(28.0.dp), val full: ERROR CLASS: Symbol not found for 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 androidx.compose.ui.graphics.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 androidx.compose.ui.graphics.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 badges, buttons, icon buttons, sliders, switches, and search bar use this shape.

Constructors

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

Properties

Link copied to clipboard
val extraLarge: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val extraSmall: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val full: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val large: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val medium: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val none: ERROR CLASS: Symbol not found for CornerBasedShape
Link copied to clipboard
val small: ERROR CLASS: Symbol not found for CornerBasedShape

Functions

Link copied to clipboard
fun SparkShapes.asMaterial3Shapes(): ERROR CLASS: Symbol not found for Material3Shapes