Source set: Common
public object FloatingActionButtonDefaults
Contains the default values used by FloatingActionButton
Functions
elevation
Source set: Common
@Deprecated("Use another overload of elevation", level = DeprecationLevel.HIDDEN)
@Composable
public fun elevation(
defaultElevation: Dp = 6.dp,
pressedElevation: Dp = 12.dp,
): FloatingActionButtonElevation
Creates a FloatingActionButtonElevation that will animate between the provided values according to the Material specification.
Parameters
| defaultElevation | the elevation to use when the FloatingActionButton has no Interactions |
| pressedElevation | the elevation to use when the FloatingActionButton is pressed. |
elevation
Source set: Common
@Composable
public 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 | the elevation to use when the FloatingActionButton has no Interactions |
| pressedElevation | the elevation to use when the FloatingActionButton is pressed. |
| hoveredElevation | the elevation to use when the FloatingActionButton is hovered. |
| focusedElevation | the elevation to use when the FloatingActionButton is focused. |