BoxBadgeAttributes
constructor(boxWidth: Dp = 34.dp, boxHeight: Dp = 40.dp, cornerRadius: Dp = 4.dp, verticalPadding: Dp = 0.dp, horizontalPadding: Dp = 0.dp, elevation: Dp = 0.dp, iconSize: IconSize = BoxBadgeIconSize, line: Int = 2, fontColor: Color? = null, textStyle: TextStyle? = null)
Parameters
boxWidth
The width of the card in Dp.
boxHeight
The height of the card in Dp.
cornerRadius
The corner radius of the card, which determines how rounded the corners will be.
verticalPadding
The amount of vertical padding inside the card, adding space above and below the content.
horizontalPadding
The amount of horizontal padding inside the card, adding space to the sides of the content.
elevation
The elevation of the card, affecting its shadow depth and positioning on the z-axis.
iconSize
The size of the icon displayed inside the badge, controlling both its width and height.
line
The exact number of lines (min and max) allowed for the badge title text.
fontColor
The color of the badge title text.