RadioButtonDefaults

object RadioButtonDefaults


Contains the default values used by RadioButton.

Summary

Public functions

RadioButtonColors
@Composable
colors(
    selectedRingColor: Color,
    selectedDotColor: Color,
    unselectedRingColor: Color,
    unselectedDotColor: Color
)

Creates a RadioButtonColors for use in a RadioButton.

Public functions

colors

@Composable
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: Color = MaterialTheme.colors.secondary

The outer ring color of this RadioButton when enabled and selected.

selectedDotColor: Color = MaterialTheme.colors.secondary

The inner dot color of this RadioButton when enabled and selected.

unselectedRingColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) )

The outer ring color of this RadioButton when enabled and unselected.

unselectedDotColor: Color = contentColorFor( MaterialTheme.colors.primary .copy(alpha = 0.5f) .compositeOver(MaterialTheme.colors.surface) )

The inner dot color of this RadioButton when enabled and unselected.