Object

CheckboxDefaults

Contains the default values used by Checkbox.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
public object CheckboxDefaults

Contains the default values used by Checkbox.

Functions

colors

@Composable
public fun colors(
    checkedBoxColor: Color = MaterialTheme.colors.secondary,
    checkedCheckmarkColor: Color = checkedBoxColor,
    uncheckedBoxColor: Color =
        contentColorFor(
            MaterialTheme.colors.primary
                .copy(alpha = 0.5f)
                .compositeOver(MaterialTheme.colors.surface)
        ),
    uncheckedCheckmarkColor: Color = uncheckedBoxColor,
): CheckboxColors

Creates a CheckboxColors for use in a Checkbox.

Parameters

checkedBoxColor The box color of this Checkbox when enabled and checked.
uncheckedBoxColor The box color of this Checkbox when enabled and unchecked.
checkedCheckmarkColor The check mark color of this Checkbox when enabled and checked.
uncheckedCheckmarkColor The check mark color of this Checkbox when enabled and unchecked.