Interface

FloatingActionButtonElevation

Represents the elevation for a floating action button in different states.

Source set: Common
public interface FloatingActionButtonElevation

Represents the elevation for a floating action button in different states.

See FloatingActionButtonDefaults.elevation for the default elevation used in a FloatingActionButton and ExtendedFloatingActionButton.

Functions

elevation

Source set: Common
@Composable public fun elevation(interactionSource: InteractionSource): State<Dp>

Represents the elevation used in a floating action button, depending on interactionSource.

Parameters

interactionSource the InteractionSource for this floating action button
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: