Object

CheckboxButtonDefaults

Contains the default values used by CheckboxButtons and SplitCheckboxButtons

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object CheckboxButtonDefaults

Contains the default values used by CheckboxButtons and SplitCheckboxButtons

Functions

checkboxButtonColors

@Composable
public fun checkboxButtonColors(): CheckboxButtonColors

Creates a CheckboxButtonColors for use in a CheckboxButton.


checkboxButtonColors

@Composable
public fun checkboxButtonColors(
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified,
    checkedSecondaryContentColor: Color = Color.Unspecified,
    checkedIconColor: Color = Color.Unspecified,
    checkedBoxColor: Color = Color.Unspecified,
    checkedCheckmarkColor: Color = Color.Unspecified,
    uncheckedContainerColor: Color = Color.Unspecified,
    uncheckedContentColor: Color = Color.Unspecified,
    uncheckedSecondaryContentColor: Color = Color.Unspecified,
    uncheckedIconColor: Color = Color.Unspecified,
    uncheckedBoxColor: Color = Color.Unspecified,
    disabledCheckedContainerColor: Color = Color.Unspecified,
    disabledCheckedContentColor: Color = Color.Unspecified,
    disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledCheckedIconColor: Color = Color.Unspecified,
    disabledCheckedBoxColor: Color = Color.Unspecified,
    disabledCheckedCheckmarkColor: Color = Color.Unspecified,
    disabledUncheckedContainerColor: Color = Color.Unspecified,
    disabledUncheckedContentColor: Color = Color.Unspecified,
    disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledUncheckedIconColor: Color = Color.Unspecified,
    disabledUncheckedBoxColor: Color = Color.Unspecified,
): CheckboxButtonColors

Creates a CheckboxButtonColors for use in a CheckboxButton.

Parameters

checkedContainerColor The container color of the CheckboxButton when enabled and checked.
checkedContentColor The content color of the CheckboxButton when enabled and checked.
checkedSecondaryContentColor The secondary content color of the CheckboxButton when enabled and checked, used for secondaryLabel content.
checkedIconColor The icon color of the CheckboxButton when enabled and checked.
checkedBoxColor The box color of the checkbox when enabled and checked.
checkedCheckmarkColor The checkmark color of the checkbox when enabled and checked.
uncheckedContainerColor The container color of the CheckboxButton when enabled and unchecked.
uncheckedContentColor The content color of a CheckboxButton when enabled and unchecked.
uncheckedSecondaryContentColor The secondary content color of this CheckboxButton when enabled and unchecked, used for secondaryLabel content
uncheckedIconColor The icon color of the CheckboxButton when enabled and unchecked.
uncheckedBoxColor The box color of the checkbox when enabled and unchecked.
disabledCheckedContainerColor The container color of the CheckboxButton when disabled and checked.
disabledCheckedContentColor The content color of the CheckboxButton when disabled and checked.
disabledCheckedSecondaryContentColor The secondary content color of the CheckboxButton when disabled and checked, used for secondaryLabel content.
disabledCheckedIconColor The icon color of the CheckboxButton when disabled and checked.
disabledCheckedBoxColor The box color of the checkbox when disabled and checked.
disabledCheckedCheckmarkColor The checkmark color of the checkbox when disabled and checked.
disabledUncheckedContainerColor The container color of the CheckboxButton when disabled and unchecked.
disabledUncheckedContentColor The content color of a CheckboxButton when disabled and unchecked.
disabledUncheckedSecondaryContentColor The secondary content color of this CheckboxButton when disabled and unchecked, used for secondaryLabel content
disabledUncheckedIconColor The icon color of the CheckboxButton when disabled and unchecked.
disabledUncheckedBoxColor The box color of the checkbox when disabled and unchecked.

splitCheckboxButtonColors

@Composable
public fun splitCheckboxButtonColors(): SplitCheckboxButtonColors

Creates a SplitCheckboxButtonColors for use in a SplitCheckboxButton.


splitCheckboxButtonColors

@Composable
public fun splitCheckboxButtonColors(
    checkedContainerColor: Color = Color.Unspecified,
    checkedContentColor: Color = Color.Unspecified,
    checkedSecondaryContentColor: Color = Color.Unspecified,
    checkedSplitContainerColor: Color = Color.Unspecified,
    checkedBoxColor: Color = Color.Unspecified,
    checkedCheckmarkColor: Color = Color.Unspecified,
    uncheckedContainerColor: Color = Color.Unspecified,
    uncheckedContentColor: Color = Color.Unspecified,
    uncheckedSecondaryContentColor: Color = Color.Unspecified,
    uncheckedSplitContainerColor: Color = Color.Unspecified,
    uncheckedBoxColor: Color = Color.Unspecified,
    disabledCheckedContainerColor: Color = Color.Unspecified,
    disabledCheckedContentColor: Color = Color.Unspecified,
    disabledCheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledCheckedSplitContainerColor: Color = Color.Unspecified,
    disabledCheckedBoxColor: Color = Color.Unspecified,
    disabledCheckedCheckmarkColor: Color = Color.Unspecified,
    disabledUncheckedContainerColor: Color = Color.Unspecified,
    disabledUncheckedContentColor: Color = Color.Unspecified,
    disabledUncheckedSecondaryContentColor: Color = Color.Unspecified,
    disabledUncheckedSplitContainerColor: Color = Color.Unspecified,
    disabledUncheckedBoxColor: Color = Color.Unspecified,
): SplitCheckboxButtonColors

Creates a SplitCheckboxButtonColors for use in a SplitCheckboxButton.

Parameters

checkedContainerColor The container color of the SplitCheckboxButton when enabled and checked.
checkedContentColor The content color of the SplitCheckboxButton when enabled and checked.
checkedSecondaryContentColor The secondary content color of the SplitCheckboxButton when enabled and checked, used for secondaryLabel content.
checkedSplitContainerColor The split container color of the SplitCheckboxButton when enabled and checked.
checkedBoxColor The box color of the SplitCheckboxButton when enabled and checked.
checkedCheckmarkColor The checkmark color of the SplitCheckboxButton when enabled and checked
uncheckedContainerColor The container color of the SplitCheckboxButton when enabled and unchecked.
uncheckedContentColor The content color of the SplitCheckboxButton when enabled and unchecked.
uncheckedSecondaryContentColor The secondary content color of the SplitCheckboxButton when enabled and unchecked, used for secondaryLabel content.
uncheckedSplitContainerColor The split container color of the SplitCheckboxButton when enabled and unchecked.
uncheckedBoxColor The box color of the SplitCheckboxButton when enabled and unchecked
disabledCheckedContainerColor The container color of the SplitCheckboxButton when disabled and checked.
disabledCheckedContentColor The content color of the SplitCheckboxButton when disabled and checked.
disabledCheckedSecondaryContentColor The secondary content color of the SplitCheckboxButton when disabled and checked, used for secondaryLabel content.
disabledCheckedSplitContainerColor The split container color of the SplitCheckboxButton when disabled and checked.
disabledCheckedBoxColor The box color of the SplitCheckboxButton when disabled and checked.
disabledCheckedCheckmarkColor The checkmark color of the SplitCheckboxButton when disabled and checked.
disabledUncheckedContainerColor The container color of the SplitCheckboxButton when disabled and unchecked.
disabledUncheckedContentColor The content color of the SplitCheckboxButton when disabled and unchecked.
disabledUncheckedSecondaryContentColor The secondary content color of the SplitCheckboxButton when disabled and unchecked, used for secondaryLabel content.
disabledUncheckedSplitContainerColor The split container color of the SplitCheckboxButton when disabled and unchecked.
disabledUncheckedBoxColor The box color of the SplitCheckboxButton when disabled and unchecked.