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
AnimatedValue<Dp, AnimationVector1D>
defaultAnimatedElevation(interactionState: InteractionState, defaultElevation: Dp = 6.dp, pressedElevation: Dp = 12.dp)

Represents the default elevation for a button in different Interactions, and how the elevation animates between them.

Public methods

defaultAnimatedElevation

@Composable fun defaultAnimatedElevation(
    interactionState: InteractionState,
    defaultElevation: Dp = 6.dp,
    pressedElevation: Dp = 12.dp
): AnimatedValue<Dp, AnimationVector1D>

Represents the default elevation for a button in different Interactions, and how the elevation animates between them.

Parameters
interactionState: InteractionState the InteractionState for this FloatingActionButton, representing the current visual state, such as whether it is Interaction.Pressed or not.
defaultElevation: Dp = 6.dp the elevation to use when the FloatingActionButton is has no Interactions
pressedElevation: Dp = 12.dp the elevation to use when the FloatingActionButton is Interaction.Pressed.