ButtonGroupDefaults

object ButtonGroupDefaults


Contains the default values used by ButtonGroup

Summary

Public functions

PaddingValues

Return the recommended padding to use as the contentPadding of a ButtonGroup, when it takes the full width of the screen.

Public properties

Dp

How much buttons grow (and neighbors shrink) when pressed.

Dp

Default for the minimum width of buttons in a ButtonGroup

Dp

Spacing between buttons.

Dp

The minimum vertical content padding for the list when a ButtonGroup is placed at the top or bottom edge.

Public functions

fullWidthPaddings

Added in 1.5.0
@Composable
fun fullWidthPaddings(): PaddingValues

Return the recommended padding to use as the contentPadding of a ButtonGroup, when it takes the full width of the screen.

Public properties

ExpansionWidth

val ExpansionWidth: Dp

How much buttons grow (and neighbors shrink) when pressed.

MinWidth

val MinWidth: Dp

Default for the minimum width of buttons in a ButtonGroup

Spacing

val Spacing: Dp

Spacing between buttons.

minimumVerticalListContentPadding

val minimumVerticalListContentPadding: Dp

The minimum vertical content padding for the list when a ButtonGroup is placed at the top or bottom edge. Recommended for use with androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope's androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope.minimumVerticalContentPadding, which allows items to choose a preferred content padding for the list. TransformingLazyColumn takes its contentPadding as the maximum of the preferred content padding values and its own contentPadding parameter.