BadgeSize

@Stable
class BadgeSize

BadgeSize

Properties

Link copied to clipboard
val height: Dp

badge height

Link copied to clipboard
val width: Dp

badge width

Functions

Link copied to clipboard
@Composable
fun BadgeSize.badgePadding(): PaddingValues

Calculates the inner padding values for a badge based on its size.

Link copied to clipboard

Calculates the corner radius for a badge. This function determines the appropriate radius based on the badge size.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Calculate the rounded corner radius of a number badge. This function returns half of the badge's height, which is typically used to create circular or oval badges.