Class

IconSizes

A set of named icon sizes.

Source set: Android
public class IconSizes(
    public val small: Dp = 32.dp,
    public val medium: Dp = 40.dp,
    public val large: Dp = 48.dp,
)

A set of named icon sizes.

Sizes can be provided using LocalIconSize to set the size for Icons within a component, or they can be set explicitly using androidx.compose.foundation.layout.size.

Functions

copy

Source set: Android
public fun copy(
        small: Dp = this.small,
        medium: Dp = this.medium,
        large: Dp = this.large,
    ): IconSizes

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

equals

Source set: Android
override fun equals(other: Any?): Boolean

hashCode

Source set: Android
override fun hashCode(): Int

toString

Source set: Android
override fun toString(): String
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: