Object

RadioButtonDefaults

Contains the default values used by RadioButton.

Source set: Android
public object RadioButtonDefaults

Contains the default values used by RadioButton.

Functions

colors

@Composable
public fun colors(
    selectedRingColor: Color = MaterialTheme.colors.secondary,
    selectedDotColor: Color = MaterialTheme.colors.secondary,
    unselectedRingColor: Color =
        contentColorFor(
            MaterialTheme.colors.primary
                .copy(alpha = 0.5f)
                .compositeOver(MaterialTheme.colors.surface)
        ),
    unselectedDotColor: Color =
        contentColorFor(
            MaterialTheme.colors.primary
                .copy(alpha = 0.5f)
                .compositeOver(MaterialTheme.colors.surface)
        ),
): RadioButtonColors

Creates a RadioButtonColors for use in a RadioButton.

Parameters

selectedRingColor The outer ring color of this RadioButton when enabled and selected.
selectedDotColor The inner dot color of this RadioButton when enabled and selected.
unselectedRingColor The outer ring color of this RadioButton when enabled and unselected.
unselectedDotColor The inner dot color of this RadioButton when enabled and unselected.

Last updated: