Google is committed to advancing racial equity for Black communities. See how.

FloatingActionButtonConstants

object FloatingActionButtonConstants
kotlin.Any
   ↳ androidx.compose.material.FloatingActionButtonConstants

Contains the default values used by FloatingActionButton

Summary

Public methods
FloatingActionButtonElevation
defaultElevation(defaultElevation: Dp = 6.dp, pressedElevation: Dp = 12.dp)

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

Public methods

defaultElevation

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

Deprecated.

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 Interaction.Pressed.