FloatingActionButtonDefaults


Contains the default values used by FloatingActionButton

Summary

Public functions

FloatingActionButtonElevation
@Composable
elevation(
    defaultElevation: Dp,
    pressedElevation: Dp,
    hoveredElevation: Dp,
    focusedElevation: Dp
)

Creates a FloatingActionButtonElevation that will animate between the provided values according to the Material specification.

Cmn

Public functions

elevation

@Composable
fun elevation(
    defaultElevation: Dp = 6.dp,
    pressedElevation: Dp = 12.dp,
    hoveredElevation: Dp = 8.dp,
    focusedElevation: Dp = 8.dp
): FloatingActionButtonElevation

Creates a FloatingActionButtonElevation that will animate between the provided values according to the Material specification.

Parameters
defaultElevation: Dp = 6.dp

the elevation to use when the FloatingActionButton has no Interactions

pressedElevation: Dp = 12.dp

the elevation to use when the FloatingActionButton is pressed.

hoveredElevation: Dp = 8.dp

the elevation to use when the FloatingActionButton is hovered.

focusedElevation: Dp = 8.dp

the elevation to use when the FloatingActionButton is focused.