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 ExpansionWidthDp

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

MinWidth

val MinWidthDp

Default for the minimum width of buttons in a ButtonGroup

Spacing

val SpacingDp

Spacing between buttons.

minimumVerticalListContentPadding

val minimumVerticalListContentPaddingDp

The minimum vertical content padding for the list when a ButtonGroup is placed at the top or bottom edge. Recommended for use with TransformingLazyColumnItemScope's Modifier.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.