RadioButtonDefaults


object RadioButtonDefaults


Contains the default values used by RadioButton.

Summary

Public functions

RadioButtonColors

Creates a default RadioButtonColors

RadioButtonColors
colors(checkedColor: Color, uncheckedColor: Color)

Creates a RadioButtonColors using FixedColorProviders for the given colors.

RadioButtonColors
colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider)

Creates a RadioButtonColors using ColorProviders.

Public functions

colors

Added in 1.0.0
@Composable
fun colors(): RadioButtonColors

Creates a default RadioButtonColors

colors

fun colors(checkedColor: Color, uncheckedColor: Color): RadioButtonColors

Creates a RadioButtonColors using FixedColorProviders for the given colors.

Parameters
checkedColor: Color

the Color to use when the RadioButton is checked

uncheckedColor: Color

the Color to use when the RadioButton is not checked

Returns
RadioButtonColors

RadioButtonColors to tint the drawable of the RadioButton according to the checked state.

colors

Added in 1.0.0
fun colors(checkedColor: ColorProvider, uncheckedColor: ColorProvider): RadioButtonColors

Creates a RadioButtonColors using ColorProviders.

Parameters
checkedColor: ColorProvider

the tint to apply to the radio button when it is checked.

uncheckedColor: ColorProvider

the tint to apply to the radio button when it is not checked.

Returns
RadioButtonColors

RadioButtonColors to tint the drawable of the RadioButton according to the checked state.